From d6bd6dc1a22302867d402367c9ad1b6ef24ef0d7 Mon Sep 17 00:00:00 2001 From: Martijn Jacobs Date: Thu, 17 Sep 2020 21:48:00 +0200 Subject: [PATCH] Explicitly add all fields --- tests/test_relations_slug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_relations_slug.py b/tests/test_relations_slug.py index d47e2126c..c7c075a1b 100644 --- a/tests/test_relations_slug.py +++ b/tests/test_relations_slug.py @@ -63,7 +63,7 @@ class OneToOneTargetSerializer(serializers.ModelSerializer): class Meta: model = OneToOneTarget - fields = '__all__' + fields = ["id", "name", "nullable_source"] # TODO: M2M Tests, FKTests (Non-nullable), One2One