Replaced default_app_config variable by module config to locate the

AppConfig object
This commit is contained in:
2025-04-10 15:01:46 +02:00
parent 0438cf91c6
commit 62accd4197
12 changed files with 25 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ class RootView(generic.TemplateView):
root_url_name = '%s:%s' % (module_meta_obj.url_namespace, root_url_name)
try:
reverse(root_url_name)
root_urls.append((module_meta_obj.app, root_url_name))
root_urls.append((module_meta_obj.package, root_url_name))
except NoReverseMatch:
pass