File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ def dynamic_type():
177
177
if not _type :
178
178
return
179
179
180
+ description = field .help_text if isinstance (field , models .ManyToManyField ) else field .field .help_text
181
+
180
182
# If there is a connection, we should transform the field
181
183
# into a DjangoConnectionField
182
184
if _type ._meta .connection :
@@ -186,11 +188,11 @@ def dynamic_type():
186
188
if _type ._meta .filter_fields or _type ._meta .filterset_class :
187
189
from .filter .fields import DjangoFilterConnectionField
188
190
189
- return DjangoFilterConnectionField (_type )
191
+ return DjangoFilterConnectionField (_type , description = description )
190
192
191
- return DjangoConnectionField (_type )
193
+ return DjangoConnectionField (_type , description = description )
192
194
193
- return DjangoListField (_type )
195
+ return DjangoListField (_type , description = description )
194
196
195
197
return Dynamic (dynamic_type )
196
198
You can’t perform that action at this time.
0 commit comments