---
title: "Discussion on \"Use django-filter in Django Rest Framework\" | Hashnode"
description: "Discussion on \"Use django-filter in Django Rest Framework\". 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.\nFor example, if we have a model as follows,\nclass Product(models.Model):\n    name = models.CharFiel..."
url: "https://hashnode.com/posts/use-django-filter-in-django-rest-framework/5f97df0e83b4c0275824b78e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use django-filter in Django Rest Framework](https://stingh711.hashnode.dev/use-django-filter-in-django-rest-framework?utm_source=hashnode&utm_medium=feed)

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...

Oct 27, 2020 · 2 min read · stingh711.hashnode.dev  
Read the article

-   [#django](https://hashnode.com/tag/django)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Hu LiHong](https://hashnode.com/@stingh711)

@stingh711

  
[View profile](https://hashnode.com/@stingh711)

python

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
