Revert "Fixed broken logging"

This reverts commit 68b21d706c.
This commit is contained in:
Eliot Berriot 2019-06-24 15:31:11 +02:00
parent 68b21d706c
commit b43bf42efc
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 13 additions and 121 deletions

View file

@ -237,20 +237,10 @@ class ManageUploadFilterSet(filters.FilterSet):
class ManageDomainFilterSet(filters.FilterSet):
q = fields.SearchFilter(search_fields=["name"])
allowed = filters.BooleanFilter()
class Meta:
model = federation_models.Domain
fields = ["name", "allowed"]
def filter_allowed(self, qs, value):
"""
If value=false, we want to include object with value=null as well
"""
if value:
return qs.filter(allowed=True)
else:
return qs.filter(allowed__in=[False, None])
fields = ["name"]
class ManageActorFilterSet(filters.FilterSet):

View file

@ -19,8 +19,8 @@ class AllowListPublic(types.BooleanPreference):
name = "allow_list_public"
verbose_name = "Publish your allowed-domains list"
help_text = (
"If enabled, everyone will be able to retrieve the list of domains you allowed. "
"If enabled, everyone will be able to retrieve the list of domains you allowed. ",
"This is useful on open setups, to help people decide if they want to join your pod, or to "
"make your moderation policy public."
"make your moderation policy public.",
)
default = False