graphene-django/graphene_django/forms
ndpu be17278b49
Add DjangoFormInputObjectType to forms/types (#1325)
* Add DjangoFormInputObjectType to forms/types

InputObjectType derived class which gets fields from django form.
Type of fields with choices (converted to enum) is set to custom scalar
type (using Meta.object_type) to dynamically convert enum values back.

* Correct Reporter model a_choice field type according to CHOICES tuple

* Add tests for DjangoFormInputObjectType

* Add pyenv files to .gitignore

* Fix pyupgrade

* Fix tests

* Add docs

* Fix docs example

---------

Co-authored-by: Firas Kafri <3097061+firaskafri@users.noreply.github.com>
2023-05-24 15:58:50 +03:00
..
tests Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00
__init__.py Fix flake8 issue 2017-10-02 09:31:58 -05:00
converter.py Convert DecimalField to Decimal instead of Float in DRF and form converters (#1277) 2022-01-18 17:03:08 +03:00
forms.py resolve django translation deprecation warnings (#847) 2020-01-11 14:52:41 +01:00
mutation.py Upgrade github actions versions, default python and dev dependencies (#1407) 2023-05-03 13:25:16 +03:00
types.py Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00