Skip to content
Snippets Groups Projects
Commit 3e7d09bd authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: id list must not contain null values

parent ba182897
No related branches found
No related tags found
No related merge requests found
Pipeline #8183 passed
......@@ -338,7 +338,7 @@ class HostSerializer(serializers.ModelSerializer):
)
links = HostLinkSerializer(many=True, required=False)
owner_ids = serializers.PrimaryKeyRelatedField(
allow_null=True, many=True, queryset=User.objects.all(), source="owners"
many=True, queryset=User.objects.all(), source="owners"
)
class Meta:
......
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