How to combine Meta.fields dict and list #1419
Unanswered
podplatnikm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I ran into a bit of a problem with my project (use Django and DRF). My problem or question is, how can you simultaneously use auto-generated filters with those you define manually - how can I define both in Meta.fields field.
Example:
In the example, I use default auto-generated filters for fields 'conference_room' and 'category'. Since this is a dict, I don't really know how I can add an 'occurrences__gte' to fields. If it was a list, this would be a trivial task.
Do I have to manually define the conference_room__in and category__in filters? If that is so, what filter do I use? CharFilter ?
Beta Was this translation helpful? Give feedback.
All reactions