mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #3663 from blueyed/doc-crispy-installed
doc: clarify that crispy-forms needs to be in INSTALLED_APPS
This commit is contained in:
commit
c7bf99330e
|
@ -145,11 +145,11 @@ To use REST framework's `DjangoFilterBackend`, first install `django-filter`.
|
||||||
|
|
||||||
pip install django-filter
|
pip install django-filter
|
||||||
|
|
||||||
If you are using the browsable API or admin API you may also want to install `crispy-forms`, which will enhance the presentation of the filter forms in HTML views, by allowing them to render Bootstrap 3 HTML.
|
If you are using the browsable API or admin API you may also want to install `django-crispy-forms`, which will enhance the presentation of the filter forms in HTML views, by allowing them to render Bootstrap 3 HTML.
|
||||||
|
|
||||||
pip install django-crispy-forms
|
pip install django-crispy-forms
|
||||||
|
|
||||||
With crispy forms installed, the browsable API will present a filtering control for `DjangoFilterBackend`, like so:
|
With crispy forms installed and added to Django's `INSTALLED_APPS`, the browsable API will present a filtering control for `DjangoFilterBackend`, like so:
|
||||||
|
|
||||||
![Django Filter](../img/django-filter.png)
|
![Django Filter](../img/django-filter.png)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user