Use django-filter in Django Rest Framework
Oct 27, 2020 · 2 min read · For a REST list API, filtering and sorting are the basic requirements. Using django-filter, we can add these functions with only a few lines of codes. For example, if we have a model as follows, class Product(models.Model): name = models.CharFiel...
Join discussion