From cb9782c93d54e73cec467369ce0e6eb0226fd6f0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 29 Aug 2024 10:06:52 -0700 Subject: [PATCH] Use custom get method so tests pass --- bookwyrm/models/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index cd7d8aaf0..8d21998c2 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -122,7 +122,7 @@ class SiteSettings(SiteModel): @classmethod def raise_federation_disabled(cls) -> None: """Don't connect to the outside world""" - if cls.objects.get().disable_federation: + if cls.get().disable_federation: raise PermissionDenied("Federation is disabled") @property