mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Use custom get method so tests pass
This commit is contained in:
parent
c6d34b5f3a
commit
cb9782c93d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue