graphene-django/graphene_django
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
..
debug Remove promise based middleware 2023-03-01 11:13:00 +03:00
filter Upgrade github actions versions, default python and dev dependencies (#1407) 2023-05-03 13:25:16 +03:00
forms Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00
management Fix schema print with -.graphql 2023-04-10 14:52:10 +03:00
rest_framework Upgrade github actions versions, default python and dev dependencies (#1407) 2023-05-03 13:25:16 +03:00
static/graphene_django Add GraphiQL Explorer plugin (#1397) 2023-05-04 22:06:10 +03:00
templates/graphene Add GraphiQL Explorer plugin (#1397) 2023-05-04 22:06:10 +03:00
tests Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00
utils 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
__init__.py Bump version 2023-05-03 11:54:46 +03:00
compat.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
conftest.py Make tests order independent (#932) 2020-04-20 13:23:20 +01:00
constants.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
converter.py Add support for Python 3.11 (#1365) 2023-05-04 15:19:24 +03:00
fields.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
registry.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
settings.py 👷 Add pre-commit (#1336) 2022-10-19 17:10:30 +03:00
types.py Add DjangoFormInputObjectType to forms/types (#1325) 2023-05-24 15:58:50 +03:00
views.py fix: use execution_context_class attribute for GraphQLView (#1398) 2023-05-24 15:54:44 +03:00