diff --git a/app/contrib/bonde/models.py b/app/contrib/bonde/models.py index 9b53d522..65cd14a5 100644 --- a/app/contrib/bonde/models.py +++ b/app/contrib/bonde/models.py @@ -336,14 +336,14 @@ class BondeBasePluginModel(CMSPlugin): class Meta: abstract = True - def get_widget(self) -> Widget | None: + def get_widget(self): if not self.reference_id: return None return Widget.objects.get(id=self.reference_id) @property - def widget(self) -> Widget | None: + def widget(self): return self.get_widget() diff --git a/app/votepeloclima/settings.py b/app/votepeloclima/settings.py index 78f18d19..d797424e 100644 --- a/app/votepeloclima/settings.py +++ b/app/votepeloclima/settings.py @@ -103,10 +103,10 @@ ROOT_URLCONF = "votepeloclima.urls" -AUTHENTICATION_BACKENDS = ( +AUTHENTICATION_BACKENDS = [ 'contrib.oauth.backends.OAuthBackend', 'django.contrib.auth.backends.ModelBackend', -) + ] + AUTHENTICATION_BACKENDS # Static files