Extending django's core admindoc library
I want to add some more functionality to the Django admindoc
, specifically this function -
class ModelDetailView(BaseAdminDocsView):
template_name = 'admin_doc/model_detail.html'
def get_context_data(self, **kwargs):
pass
Should I copy the whole module and paste it over a separate app and then do the changes and then include it in my project? But with this approach, I am adding redundancy to my Django project as I already have all this by default and my usecase is to just extend this function and not everything else.