Commit Graph

538 Commits

Author SHA1 Message Date
sierreis
4d905a46ac Fixed flake8 lint error 2019-03-25 10:03:54 -04:00
sierreis
5c191b9062 Add support for filterset_class meta parameter
* Allow for use of either filter_fields or filterset_class
* Add tests to check that the behavior is similar to filter_fields
* Add documentation to show how to make use of the parameter
2019-03-25 00:38:49 -04:00
Adam Johnson
ea2cd9894f Always use HTTPS for CDN files (#498)
* Always use HTTPS for CDN files

There's no point using insecure, deprecated HTTP even if the current page is on HTTP.

* add integrity and crossorigin attributes
2019-03-19 20:34:10 +00:00
Atul Varma
263c7267cb Fix code errors in form-mutations.rst (#499)
This fixes what appear to be some code errors/typos:

* The `FormMutation` class was renamed to `DjangoFormMutation`, and `ModelFormMutation` to `DjangoModelFormMutation`, in 40610c64a3.
* `form_valid` was renamed to `perform_mutate` in 463ce68b16.

It also clarifies a few things that I found confusing:

* It explicitly mentions that `perform_mutate` is a class method.
* The code samples now import the form classes from their packages, so readers know where to import them from too.
2019-03-19 20:24:24 +00:00
Liam O'Flynn
75bf398523 Ensure code example is fully functional (#477)
Simple change, it took me a while to figure out why the documentation's code was throwing an AssertionError :)
2019-03-19 20:22:04 +00:00
Charles Bradshaw
ae126a6dc3 Add Introspection Schema Link in Documentation (#489)
By the end of the Graphene and Django Tutorial using Relay, one might think they have finished everything needed server side for Relay, but six sections later, in a section that doesn't mention Relay in the title, the final required step for Relay is documented.
2019-03-19 20:20:26 +00:00
Jonathan Kim
6ce59aec1f
Merge pull request #538 from alqinae/cookbook-plain-2.1-compatible
Cookbook plain 2.1.2 compatible
2019-03-16 11:31:41 +00:00
Jonathan Kim
297b807f96
Merge pull request #508 from danpalmer/graphiql-no-querystring
Improve Security of GraphiQL
2019-03-16 11:30:32 +00:00
Mel van Londen
87592392de
Merge pull request #590 from graphql-python/fix-tests
Fix lint error
2019-03-09 22:09:13 -08:00
Jonathan Kim
ce8fa7f9f2 Fix lint error 2019-03-09 22:39:04 +01:00
Mel van Londen
a7c1d0146a
Merge pull request #526 from AlonsoEnrique/patch-1
fix order in params
2019-03-08 23:29:56 -08:00
Khaled Alqenaei
905b4249f3 Updated ingredients/schema.py and recipes/schema.py to be more readable. 2018-10-18 12:27:23 -07:00
Khaled Alqenaei
4359e1f312 Making the example working for Django 2.1.2 2018-10-18 11:36:35 -07:00
Khaled Alqenaei
19ef9a094a Making the example working for Django 2.1.2 2018-10-18 11:33:53 -07:00
Alonso
f3144bf996
fix order in params 2018-09-26 13:07:50 -05:00
Syrus Akbary
f76f38ef30
Merge pull request #512 from kalekseev/schema-to-stdout
Provide a way to dump schema to stdout.
2018-09-09 22:49:53 +02:00
Syrus Akbary
3d493c3bd9
Merge pull request #513 from danpalmer/patch-2
Document Django Debug types
2018-09-09 22:49:01 +02:00
Dan Palmer
2b08e59bea
Revert to default query execution behaviour
The only security risk here is persuading a user to execute a mutation,
which is probably not a big risk. To mitigate this risk and still keep
the same UX (that is so valuable), would require more work than is
proportionate for this PR.
2018-09-09 21:44:30 +01:00
Dan Palmer
040f6aa10e
Document, including whether fields are required 2018-09-09 19:01:00 +01:00
Dan Palmer
e6b21594d7
Add some documentation to DjangoDebug 2018-09-09 18:59:28 +01:00
Konstantin Alekseev
85527e1f94 Provide a way to dump schema to stdout. 2018-09-08 15:34:48 +03:00
Syrus Akbary
f4bbae29df
Updated version to 2.2.0 2018-09-05 23:20:25 +02:00
Syrus Akbary
f6dba3942c
Merge pull request #506 from ccsv/patch-1
Update authorization docs to Graphene 2.0
2018-09-05 13:30:40 +02: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
Syrus Akbary
21bad6105c
Merge pull request #472 from wsantos/master
Exclude id from mutation for create operations
2018-09-05 13:20:38 +02:00
Syrus Akbary
a59f41b080
Remove iso8601 dependency, updated graphql-core 2018-09-05 13:18:09 +02:00
Syrus Akbary
e45708b44e
Merge pull request #492 from jayhale/django-filter-2
Make GrapheneFilterSetMixin compatible with django-filter 2
2018-09-05 13:10:52 +02:00
Jay Hale
0314931f12 Removed Django < 1.11 compatibility checks from tests 2018-09-04 13:15:04 -04:00
Jay Hale
f8dff38e29 Remove unnecessary compat utility for Django < 1.11 2018-09-04 13:15:04 -04:00
Jay Hale
d8bdda94df Add back support for django-filter < 2 2018-09-04 13:15:04 -04:00
Jay Hale
9152075ed8 Remove unsupported python & Django test cases 2018-09-04 13:15:04 -04:00
Jay Hale
dc0c2900d1 Making GrapheneFilterSetMixin compatible with django_filter 2 2018-09-04 13:15:04 -04:00
Syrus Akbary
14f156ef5f
Merge pull request #491 from ACollectionOfAtoms/patch-1
Mention filter incompatibility with django 2.0
2018-08-31 11:53:58 +02:00
Dan Palmer
cb87f40165
Document that staticfiles is now a dependency. 2018-08-30 20:59:09 +01:00
Dan Palmer
7e8f6dbd4e
Change quotes to improve some syntax highlighting 2018-08-30 20:58:00 +01:00
Dan Palmer
e50e12bc9f
Move GraphiQL's JS into a separate file for ease of CSP 2018-08-30 20:36:26 +01:00
Dan Palmer
24ebc20bf4
Fix comment 2018-08-30 20:32:38 +01:00
Dan Palmer
d1b734f07d
Allow the user to see the query before prompting
This also allows the introspection query through so that the user can
edit with intellisense before being prompted.
2018-08-30 20:31:39 +01:00
Dan Palmer
9a5b3556d3
Special case reloads as allowed if we can 2018-08-30 19:48:38 +01:00
Dan Palmer
0d8f9db3fb
Pass options from the fragment, not the template context 2018-08-30 19:48:21 +01:00
Dan Palmer
3755850c2e
Use the fragment for the URL 2018-08-30 19:47:48 +01:00
Dan Palmer
219005952a
Don't execute on GET for GraphiQL
We can also now return GraphiQL earlier in the request handling.
2018-08-30 19:29:33 +01: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
Adam
40da74fc52
Mention filter incompatibility with django 2.0
Was in the process of updating our app to Python 3 + Django 2.1 and ran into this (would've been nice if t was mentioned in the docs).

Related: https://github.com/graphql-python/graphene-django/issues/464
2018-08-07 11:04:52 -04:00
Syrus Akbary
9351626ad8
Merge pull request #483 from adamchainz/patch-1
Reword 'abstract' -> 'mixin' in plain tutorial
2018-08-01 11:52:56 -07:00
Adam Johnson
1ba9652f38
Reword 'abstract' -> 'mixin' in plain tutorial
More technically correct
2018-08-01 12:51:46 +01:00
Syrus Akbary
52d14f3b8a
Merge pull request #475 from NoumirPoutipou/master
Pin an explicit version of django-filter (<2) on cookbook example
2018-07-23 19:41:07 -07:00
Noumir.Poutipou
a57098b1cb Pin an explicit version of django-filter (<2) on cookbook example 2018-07-24 04:03:59 +02:00
Waldecir Santos
9cf52ca272 Merge branch 'master' of github.com:wsantos/graphene-django
# Conflicts:
#	graphene_django/forms/tests/test_mutation.py
2018-07-22 23:56:25 +01:00