mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 19:14:11 +03:00
Make id field an ID type
This commit is contained in:
parent
748dc4c509
commit
6d7a0d053d
|
@ -128,7 +128,7 @@ class DjangoModelFormMutation(BaseDjangoFormMutation):
|
|||
|
||||
form = form_class()
|
||||
input_fields = fields_for_form(form, only_fields, exclude_fields)
|
||||
input_fields['id'] = convert_form_field(model._meta.pk)
|
||||
input_fields['id'] = graphene.ID()
|
||||
|
||||
registry = get_global_registry()
|
||||
model_type = registry.get_type_for_model(model)
|
||||
|
|
|
@ -22,7 +22,7 @@ def test_needs_form_class():
|
|||
class MyMutation(DjangoFormMutation):
|
||||
pass
|
||||
|
||||
assert exc.value.args[0] == 'form_class is required for FormMutation'
|
||||
assert exc.value.args[0] == 'form_class is required for DjangoFormMutation'
|
||||
|
||||
|
||||
def test_has_output_fields():
|
||||
|
|
Loading…
Reference in New Issue
Block a user