Hi All,
I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.
The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.
NoReverseMatch at /admin/category/category/add/
Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']
If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.
How can I still show the default form to add data to the model and override the
changelist_view.html" .
Appreciate any help in advance.
Thanks
Rahul