Adding links to the cookbook example app (links should work upon merge)

This commit is contained in:
Adam Charnock 2015-12-31 03:18:37 +00:00
parent a881aa94e4
commit 716aa8ff66
2 changed files with 10 additions and 4 deletions

View File

@ -10,16 +10,19 @@ to provide filtering of results. See the
[usage documentation](https://django-filter.readthedocs.org/en/latest/usage.html#the-filter)
for details on the format for `filter_fields`.
**Note 1:** This filtering is only available when using the Django integrations
(i.e. nodes which extend `DjangoNode`)
**Note 2:** `django-filter` is an optional dependency of Graphene. You will need to
This filtering is only available when using the Django integrations
(i.e. nodes which extend `DjangoNode`). Additionally `django-filter`
is an optional dependency of Graphene. You will need to
install it manually, which can be done as follows:
```bash
# You'll need to django-filter
pip install django-filter
```
**Note: The techniques below are demoed in the
[cookbook example app](https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook).**
## Filterable fields
The `filter_fields` parameter is used to specify the fields which can be filtered upon.

View File

@ -13,6 +13,9 @@ Django's getting started page.
First let's create a few simple models...
**Note: The code in this quickstart is pulled from the
[cookbook example app](https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook)**.
## Defining our models
Before continuing, create the following: