fix attribute error

This commit is contained in:
krmax44 2022-03-14 15:18:28 +01:00
parent a3c12ca90e
commit c0c68c4b70
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03

View file

@ -27,7 +27,7 @@ class GovPlanSectionDetailView(GovernmentMixin, DetailView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["plans"] = self.context["object"].get_plans()
context["plans"] = context["object"].get_plans()
return context