Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions graphene_django/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def dynamic_type():
if not _type:
return

description = field.help_text if isinstance(field, models.ManyToManyField) else field.field.help_text

# If there is a connection, we should transform the field
# into a DjangoConnectionField
if _type._meta.connection:
Expand All @@ -186,11 +188,11 @@ def dynamic_type():
if _type._meta.filter_fields or _type._meta.filterset_class:
from .filter.fields import DjangoFilterConnectionField

return DjangoFilterConnectionField(_type)
return DjangoFilterConnectionField(_type, description=description)

return DjangoConnectionField(_type)
return DjangoConnectionField(_type, description=description)

return DjangoListField(_type)
return DjangoListField(_type, description=description)

return Dynamic(dynamic_type)

Expand Down