Commit Graph

27 Commits

Author SHA1 Message Date
Laurent
0de35ca3b0
fix: fk resolver permissions leak (#1411)
* fix: fk resolver permissions leak

* fix: only one query for 1o1 relation

* tests: added queries count check

* fix: docstring

* fix: typo

* docs: added warning to authorization

* feat: added bypass_get_queryset decorator
2023-07-18 15:16:52 +03:00
Tim Schilling
5d5d7f1815
Django v4, python 3.10 support for graphene-django v3 (#1281)
Co-authored-by: Yair Silbermintz <MisterGlass@users.noreply.github.com>
2022-01-07 20:26:07 +00:00
Jason Kraus
d9ab8acf26
document auth pattern: return None with resolve method (#1106)
* document auth pattern: return None with resolve method

* (doc, auth): also show that one can raise an exception in a resolve method
2021-02-02 09:58:21 -08:00
Radosław Kowalski
1f752b6cad
Warn if fields or exclude are not defined on DjangoObjectType (#981) 2020-06-11 11:09:52 +01:00
Jean-Louis Fuchs
10d22de98e
graphql 3.0 and graphene 3.0 final rebase (#951) 2020-05-09 12:13:47 +01:00
Ülgen Sarıkavak
dd0d6ef28f
Python 3 (#904)
* Remove Python 2 support

* Upgrade Python & Django versions

* Remove unsupported Django versions
* Remove unsupported Python versions
* Add Python 3.8

* Drop support for django-filter < 2

* Update LoginRequiredMixin doc link

* Remove redundant import

* Resolve RemovedInDjango40Warning warnings

* gql/graphene-django/graphene_django/tests/test_converter.py:175:
RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is
deprecated in favor of django.utils.translation.gettext_lazy().

* graphene-django/graphene_django/utils/utils.py:28:
RemovedInDjango40Warning: force_text() is deprecated in favor of
force_str().

* No need to use unicode strings with Python3

* Remove singledispatch dependency

singledispatch is inluded with Python >= 3.4, no need for external
package.
2020-04-06 13:21:07 +01:00
Akhil Gopi
13352216a4
Improv/documentation fixes (#895)
* Bump up the minimum support Django version.

* Update documentation to mention support for Django 1.11.

Co-authored-by: Akhil <akhil@healthifyme.com>
2020-03-07 17:17:45 +01:00
Semyon Pupkov
ac79b38cf0 Use field and exclude in docs instead deprecated attrs (#740) 2019-09-07 09:49:41 -07:00
A C SREEDHAR REDDY
9d245287a4 is_authenticated is bool not callable. (#749) 2019-08-16 14:33:59 +01:00
Jonathan Kim
6e8dce95ae
Update doc setup (#673)
* Expose doc commands in root makefile and add autobuild

* Fix some errors

* Alias some commands and add PHONY
2019-06-14 12:33:37 +01:00
Paul Hallett
31468f5687
Rebuild documentation 2019-05-07 19:23:01 +01:00
Jason Kraus
0a5020bee1 Get queryset (#528)
* first attempt at adding get_queryset

* add queryset_resolver to DjangoConnectionField and fix test failures

* cleanup get_queryset API to match proposal as close as possible

* pep8 fix: W293

* document get_queryset usage

* add test for when get_queryset is defined on DjangoObjectType
2019-03-31 12:01:17 +01:00
Alonso
f3144bf996
fix order in params 2018-09-26 13:07:50 -05:00
Syrus Akbary
2ccd483ffc
Update authorization.rst 2018-09-05 13:22:54 +02:00
Syrus Akbary
446013c752
Update authorization.rst 2018-09-05 13:21:39 +02:00
C Chan
84d82f82a9
Update authorization docs to Graphene 2.0
*  Re-write some language in "Limiting Field Access"
* Added code to "Queryset Filtering On Lists" section to handle queries that return nothing
* fix code to Filtering ID-based node access to work based on question [here](https://stackoverflow.com/questions/51057784/django-graphene-with-relay-restricting-queries-access-based-on-id/51958088#51958088)
* Rewrote Adding Login Requirements to be Django 2.0 compatible 
Fixed login requirements
2018-08-29 00:37:27 -07:00
eyal0803
d98d2a6a73
Update authorization.rst
Someone probably forgot to change `CategoryNode`, from the previous tutorial, to `PostNode`.
2018-02-23 20:59:19 +02:00
Vincent Poulailleau
00b5a176d3
typo in authorization.rst
fix a small typo error in the documentation
2017-10-30 09:54:09 +01:00
Dan Lousqui
9c9cef4ea9 Update authorization.rst
Upgrading doc, as suggested in https://github.com/graphql-python/graphene-django/issues/282
2017-10-08 14:42:34 +02:00
Syrus Akbary
f3d9cbcd14 Merge pull request #109 from BossGrand/master
Added documentations for limiting field access using exclude_fields...
2017-02-11 16:14:34 -08:00
Radoslav Georgiev
b63cb772e4 Add Adding login required section to authorization 2017-02-09 18:18:50 +02:00
BossGrand
84a074250b missed a period 2017-02-06 17:00:35 -08:00
BossGrand
602e1f9de1 Added documentation for exclude_fields
as a method of limiting field access

DjangoObjectType
2017-02-06 16:59:13 -08:00
Thierry Guillemot
3f139da7ae Fix Post name attribute
The `PostNode` class uses as model Post which does not have any field `title`
2016-12-05 11:01:49 +01:00
Aleck Landgraf
c25e2c6d25 Fixes typo in docs 2016-10-18 14:30:15 -07:00
Syrus Akbary
eef2841742 Updated Django docs with latest changes in graphene-python PRs.
Including unmerged PR: https://github.com/graphql-python/graphene-python.org/pull/5
2016-09-25 04:11:01 -07:00
Syrus Akbary
1f3fbe0e76 Added first version of the docs 2016-09-20 22:30:36 -07:00