Skip to content

Commit 4dfc66e

Browse files
committed
Merge pull request #3352 from miki725/url-filter
Added django-url-filter to 3rd party libraries
2 parents 3a0d54c + 6926c71 commit 4dfc66e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/api-guide/filtering.md

+5
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ The [django-rest-framework-filters package][django-rest-framework-filters] works
403403

404404
The [djangorestframework-word-filter][django-rest-framework-word-search-filter] developed as alternative to `filters.SearchFilter` which will search full word in text, or exact match.
405405

406+
## Django URL Filter
407+
408+
[django-url-filter][django-url-filter] provides a safe way to filter data via human-friendly URLs. It works very similar to DRF serializers and fields in a sense that they can be nested except they are called filtersets and filters. That provides easy way to filter related data. Also this library is generic-purpose so it can be used to filter other sources of data and not only Django `QuerySet`s.
409+
406410
[cite]: https://docs.djangoproject.com/en/dev/topics/db/queries/#retrieving-specific-objects-with-filters
407411
[django-filter]: https://github.com/alex/django-filter
408412
[django-filter-docs]: https://django-filter.readthedocs.org/en/latest/index.html
@@ -413,3 +417,4 @@ The [djangorestframework-word-filter][django-rest-framework-word-search-filter]
413417
[search-django-admin]: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.search_fields
414418
[django-rest-framework-filters]: https://github.com/philipn/django-rest-framework-filters
415419
[django-rest-framework-word-search-filter]: https://github.com/trollknurr/django-rest-framework-word-search-filter
420+
[django-url-filter]: https://github.com/miki725/django-url-filter

docs/topics/third-party-resources.md

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ To submit new content, [open an issue][drf-create-issue] or [create a pull reque
233233
### Filtering
234234

235235
* [djangorestframework-chain][djangorestframework-chain] - Allows arbitrary chaining of both relations and lookup filters.
236+
* [django-url-filter][django-url-filter] - Allows a safe way to filter data via human-friendly URLs. It is a generic library which is not tied to DRF but it provides easy integration with DRF.
236237

237238
### Misc
238239

@@ -343,3 +344,4 @@ To submit new content, [open an issue][drf-create-issue] or [create a pull reque
343344
[drf-tracking]: https://github.com/aschn/drf-tracking
344345
[django-rest-framework-braces]: https://github.com/dealertrack/django-rest-framework-braces
345346
[dry-rest-permissions]: https://github.com/Helioscene/dry-rest-permissions
347+
[django-url-filter]: https://github.com/miki725/django-url-filter

0 commit comments

Comments
 (0)