Django-filter customization for rest api

10 views
Skip to first unread message

Abhineet Baranwal

unread,
Sep 5, 2019, 9:26:16 AM9/5/19
to Django users
When we pass fields in Meta class for custom filter then django-filter adds 'and' in-between the fields .how to add 'or' operator in between
the fields.please explain with an example for rest api.

Nishant Bhanushali

unread,
Sep 5, 2019, 12:39:44 PM9/5/19
to django...@googlegroups.com
I have an doubt.. 
There are many field types and many other field option. 
How can we make it

On Thu, Sep 5, 2019, 18:56 Abhineet Baranwal <suabhinee...@gmail.com> wrote:
When we pass fields in Meta class for custom filter then django-filter adds 'and' in-between the fields .how to add 'or' operator in between
the fields.please explain with an example for rest api.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c04fa1dd-90e6-470f-890c-97495c5b7737%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages