Monthly Archive: May 2018

Snippet: OR filters with Django-filter 0

Snippet: OR filters with Django-filter

The requirement is to build a simple OR condition query string filter using django-filter. Since there is no standardization of the format, I have used a query string which looks like ?value=v1|v2|v3 Here’s a...

2

Django middlewares with Rest Framework

Due to some design decisions in Django Rest Framework, the request.user is not available in the middleware request layer but only the views layer. Which means any extensible middlewares that you can think of...