Getting "!!python/object/..." for enums in my schema #8029
Unanswered
kolanos
asked this question in
Potential Issue
Replies: 1 comment
-
Was able to pinpoint the enum schema generation to: https://github.com/carltongibson/django-filter/blob/main/django_filters/rest_framework/backends.py#L168 The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Django REST Framework with both
django-filter
anddjango-enumfields
and am seeing the following in my schema:Anyone know where these
!!python/object/...
are coming from and how to fix? I assume it is an incompatibility between DRF, django-filters and django-enumfields -- but am not finding where DRF is pulling these enums from. Other enums (non-query ones) work just fine.Versions used:
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions