File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,19 @@ to provide filtering of results. See the
10
10
[ usage documentation] ( https://django-filter.readthedocs.org/en/latest/usage.html#the-filter )
11
11
for details on the format for ` filter_fields ` .
12
12
13
- ** Note 1:** This filtering is only available when using the Django integrations
14
- (i.e. nodes which extend ` DjangoNode ` )
15
-
16
- ** Note 2:** ` django-filter ` is an optional dependency of Graphene. You will need to
13
+ This filtering is only available when using the Django integrations
14
+ (i.e. nodes which extend ` DjangoNode ` ). Additionally ` django-filter `
15
+ is an optional dependency of Graphene. You will need to
17
16
install it manually, which can be done as follows:
18
17
19
18
``` bash
19
+ # You'll need to django-filter
20
20
pip install django-filter
21
21
```
22
22
23
+ ** Note: The techniques below are demoed in the
24
+ [ cookbook example app] ( https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook ) .**
25
+
23
26
## Filterable fields
24
27
25
28
The ` filter_fields ` parameter is used to specify the fields which can be filtered upon.
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ Django's getting started page.
13
13
14
14
First let's create a few simple models...
15
15
16
+ ** Note: The code in this quickstart is pulled from the
17
+ [ cookbook example app] ( https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook ) ** .
18
+
16
19
## Defining our models
17
20
18
21
Before continuing, create the following:
You can’t perform that action at this time.
0 commit comments