You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://localhost:8000/api/core/city/ # to return cities with all serialized fields
http://localhost:8000/api/core/city/choices/ # to return only key: value (pk, name) fields
How I can run filters from inside choices mixin before to return response?
The text was updated successfully, but these errors were encountered:
I have this ViewSet with relative filters
Now ChoiceMixin add an action
choices
that turn a model into choicesThis will allow me to call
How I can run filters from inside choices mixin before to return response?
The text was updated successfully, but these errors were encountered: