We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e05f41a commit 75e11a8Copy full SHA for 75e11a8
graphene_django/rest_framework/tests/test_mutation.py
@@ -10,6 +10,7 @@
10
11
class MyFakeModel(models.Model):
12
cool_name = models.CharField(max_length=50)
13
+ created = models.DateTimeField(auto_now_add=True)
14
15
16
class MyModelSerializer(serializers.ModelSerializer):
@@ -71,6 +72,7 @@ class Meta:
71
72
model_input_type = model_input._type.of_type
73
assert issubclass(model_input_type, InputObjectType)
74
assert 'cool_name' in model_input_type._meta.fields
75
+ assert 'created' in model_input_type._meta.fields
76
77
78
def test_mutate_and_get_payload_success():
0 commit comments