From 94cbb602d1e03e3eaab4420a04382985881d6050 Mon Sep 17 00:00:00 2001 From: Alexandr Artemyev Date: Thu, 4 Jul 2024 13:55:28 +0500 Subject: [PATCH] Fix --- constance/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/constance/admin.py b/constance/admin.py index 21f4d348..6187193a 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -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):