Skip to content
Snippets Groups Projects
Verified Commit 27ada784 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed flaky test

parent 36c0065b
No related branches found
No related tags found
No related merge requests found
......@@ -384,8 +384,7 @@ class ManageDomainViewSet(
):
lookup_value_regex = r"[a-zA-Z0-9\-\.]+"
queryset = (
federation_models.Domain.objects.external()
.with_actors_count()
federation_models.Domain.objects.with_actors_count()
.with_outbox_activities_count()
.prefetch_related("instance_policy")
.order_by("name")
......@@ -402,6 +401,10 @@ class ManageDomainViewSet(
"instance_policy",
]
def get_queryset(self, **kwargs):
queryset = super().get_queryset(**kwargs)
return queryset.external()
def get_serializer_class(self):
if self.action in ["update", "partial_update"]:
# A dedicated serializer for update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment