Add an absolute url to your model.
El lun., 16 de agosto de 2021 3:57 a. m., 'Rahul Chauhan' via Django users <django-users@googlegroups.com> escribió:
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.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
--This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHRQUHmqqZEXH0bshLVbKnOSDkV2L%3DCVKv_wa3rKx6%3DbxAgnpA%40mail.gmail.com.
No comments:
Post a Comment