Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogost committed Jul 4, 2024
1 parent 47ec739 commit 94cbb60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions constance/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def __init__(self, model, admin_site):
super().__init__(model, admin_site)

def get_urls(self):
info = self.model._meta.app_label, self.model._meta.module_name
info = f'{self.model._meta.app_label}_{self.model._meta.module_name}'
return [
path('', self.admin_site.admin_view(self.changelist_view), name=f'{info[0]}_{info[1]}_changelist'),
path('', self.admin_site.admin_view(self.changelist_view), name=f'{info[0]}_{info[1]}_add'),
path('', self.admin_site.admin_view(self.changelist_view), name=f'{info}_changelist'),
path('', self.admin_site.admin_view(self.changelist_view), name=f'{info}_add'),
]

def get_config_value(self, name, options, form, initial):
Expand Down

0 comments on commit 94cbb60

Please sign in to comment.