Add link to Django choices documentation

This commit is contained in:
Jonathan Kim 2019-06-14 11:16:07 +01:00
parent 2d71a107d5
commit 380ad94b3b

View File

@ -95,8 +95,10 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType
Choices to Enum conversion
~~~~~~~~~~~~~~~~~~~~~~~~~~
By default Graphene-Django will convert any Django fields that have ``choices``
into a GraphQL enum type.
By default Graphene-Django will convert any Django fields that have `choices`_
defined into a GraphQL enum type.
.. _choices: https://docs.djangoproject.com/en/2.2/ref/models/fields/#choices
For example the following ``Model`` and ``DjangoObjectType``: