From db25ed3e55290e3d3a5571cdb011123682b19aa5 Mon Sep 17 00:00:00 2001 From: spiceworm Date: Fri, 13 Sep 2024 21:25:03 -0600 Subject: [PATCH] Fix VariableDoesNotExist exceptions These were being thrown if fieldsets and subtitle are missing from the context. --- constance/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/constance/admin.py b/constance/admin.py index 6187193a..d992a0a9 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -96,6 +96,8 @@ def changelist_view(self, request, extra_context=None): self.admin_site.each_context(request), config_values=[], title=self.model._meta.app_config.verbose_name, + subtitle=None, + fieldsets=[], app_label='constance', opts=self.model._meta, form=form,