Skip to content

Commit ed4ee98

Browse files
ppk42Peter Paul Kiefer
and
Peter Paul Kiefer
authored
V2 has broken liks too see #1309 (#1310)
* fix broken links for the v2 branch v2 brach has broken links to read the docs too I additionally found a link to the git hub master tree, which should be changed to main. * #1295 github link fixed (master->v2) Co-authored-by: Peter Paul Kiefer <dafisppk@gmail.com>
1 parent a7a8b3d commit ed4ee98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/filtering.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Filtering
22
=========
33

44
Graphene-Django integrates with
5-
`django-filter <https://django-filter.readthedocs.io/en/master/>`__ (2.x for
5+
`django-filter <https://django-filter.readthedocs.io/en/main/>`__ (2.x for
66
Python 3 or 1.x for Python 2) to provide filtering of results. See the `usage
7-
documentation <https://django-filter.readthedocs.io/en/master/guide/usage.html#the-filter>`__
7+
documentation <https://django-filter.readthedocs.io/en/main/guide/usage.html#the-filter>`__
88
for details on the format for ``filter_fields``.
99

1010
This filtering is automatically available when implementing a ``relay.Node``.
@@ -27,15 +27,15 @@ After installing ``django-filter`` you'll need to add the application in the ``s
2727
]
2828
2929
Note: The techniques below are demoed in the `cookbook example
30-
app <https://github.com/graphql-python/graphene-django/tree/master/examples/cookbook>`__.
30+
app <https://github.com/graphql-python/graphene-django/tree/v2/examples/cookbook>`__.
3131

3232
Filterable fields
3333
-----------------
3434

3535
The ``filter_fields`` parameter is used to specify the fields which can
3636
be filtered upon. The value specified here is passed directly to
3737
``django-filter``, so see the `filtering
38-
documentation <https://django-filter.readthedocs.io/en/master/guide/usage.html#the-filter>`__
38+
documentation <https://django-filter.readthedocs.io/en/main/guide/usage.html#the-filter>`__
3939
for full details on the range of options available.
4040

4141
For example:
@@ -163,7 +163,7 @@ in unison with the ``filter_fields`` parameter:
163163
animal = relay.Node.Field(AnimalNode)
164164
all_animals = DjangoFilterConnectionField(AnimalNode)
165165
166-
The context argument is passed on as the `request argument <http://django-filter.readthedocs.io/en/master/guide/usage.html#request-based-filtering>`__
166+
The context argument is passed on as the `request argument <http://django-filter.readthedocs.io/en/main/guide/usage.html#request-based-filtering>`__
167167
in a ``django_filters.FilterSet`` instance. You can use this to customize your
168168
filters to be context-dependent. We could modify the ``AnimalFilter`` above to
169169
pre-filter animals owned by the authenticated user (set in ``context.user``).

0 commit comments

Comments
 (0)