Commit Graph

776 Commits

Author SHA1 Message Date
Jonathan Kim
079da60c8f
Create config.yml 2020-05-09 13:28:56 +01:00
Jonathan Kim
72375b2d14 Update issue templates 2020-05-09 13:28:01 +01:00
Jonathan Kim
709611b577 Install wheel before creating distribution 2020-05-09 12:37:47 +01:00
Jonathan Kim
b0613dd0e4
Update __init__.py 2020-05-09 12:32:51 +01:00
Jonathan Kim
5867331c7b
Allow defining fields as an empty list (#871) 2020-05-09 12:28:19 +01:00
Jonathan Kim
b4e34a5794
Improve DjangoListField (#929) 2020-05-09 12:28:03 +01:00
Jonathan Kim
8990e173ac
Add extra types documentation (#902) 2020-05-09 12:19:02 +01:00
Marc Simon
975f45ed1a
GraphQlView: Do not 'instantiate_middleware' if middleware is already a MiddlewareManager (#952) 2020-05-09 12:15:16 +01:00
Jack W
894c564ab7
Convert nullable BooleanField to nullable Boolean. (#777) 2020-05-09 12:09:17 +01:00
Jonathan Kim
b8d8508d1f
Add GitHub actions (#947) 2020-05-01 14:04:36 +01:00
Jean-Louis Fuchs
b9f0e4f9ae
Make tests order independent (#932)
* Reset the global registry after each test (teardown)

* Create a settings fixtures that returns graphene_settings and resets
  the graphene_settings after use (teardown)

* Convert test_mutation tests from unittests.TestCase to pytest

* Convert test_mutation PetType to a pet_type fixtures that reregisters
  the type
2020-04-20 13:23:20 +01:00
Noelle Leigh
dc5c971498
Switch operation_name to operationName in GraphQLTestCase (#936)
* Add op_name test

* Replace "operation_name" with "operationName"

* Improve test comments

* Add method for Python 2.7
2020-04-19 21:11:33 +01:00
Sam Millar
23b6419b42
Disable system checks for graphql_schema management command (#939) 2020-04-19 20:42:00 +01:00
Jonathan Kim
fba6de41dd
Update README.md 2020-04-13 11:54:17 +01:00
Jonathan Kim
cfc8fea7f5
Update README.md 2020-04-13 11:53:06 +01:00
Jonathan Kim
e1cfc0a80b
v2.9.1 2020-04-12 20:01:56 +01:00
Jonathan Kim
481d3ff35d
Fix DjangoModelFormMutation (#915)
* Fix DjangoModelFormMutation

* Try and fix tests

* Remove unused form
2020-04-12 20:01:30 +01:00
Jonathan Kim
9d9a14c36d
Fix failing tests (#931)
* Use proper model

* Remove failing test

* Add python 3.8 to test list
2020-04-12 16:18:41 +01:00
Roy Segall
3483428f70
Adding documentation for installing django-filter (#928) 2020-04-12 12:57:11 +01:00
Jonathan Kim
613e1e31f4
Add slack link 2020-04-07 11:05:17 +01:00
fneitzel
b84f61afab
Documentation missing endpoint explanation (#918)
* Documentation missing endpoint explanation

Add some information about GRAPHQL_URL. Otherwise people run into ERROR 400 problems, if they have a different endpoint.

* Update docs/testing.rst

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-04-06 09:58:55 +01:00
Roy Segall
63418666d9
Adding Django filter as an installed app (#899) 2020-04-06 09:15:35 +01:00
Jonathan Kim
0da06d4d54
Update stale.yml 2020-03-18 12:59:32 +00:00
Ülgen Sarıkavak
cf9f59071e
Update dev dependencies (#903) 2020-03-14 10:40:41 +00:00
Jonathan Kim
150008aae5
v2.9.0 2020-03-13 10:13:46 +00:00
Jonathan Kim
c8a56f8857
Allow string references in DjangoListField (#885)
* Allow passing string references to DjangoListField

* Refactor logic to work with string imports
2020-03-13 10:05:35 +00:00
Jonathan Kim
348fcf37a0
Detect format from output file path (#868)
* Detect format from output file path

* Fix tests

* Add test for exporting graphql file

* Add some documentation
2020-03-13 10:04:55 +00:00
Jonathan Kim
b8e598d66d
Add options to override how Django Choice fields are converted t… (#860)
* Add new setting to create unique enum names

* Add specific tests for name generation

* Add schema test

* Rename settings field

* Rename setting

* Add custom function setting

* Add documentation

* Use format instead of f strings

* Update graphene_django/converter.py

Co-Authored-By: Syrus Akbary <me@syrusakbary.com>

* Fix tests

* Update docs

* Import function through import_string function

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-03-13 10:04:25 +00: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
Sergey Fursov
aeb04d5b5c
use actual root/variables/context args of the execute method (#878) 2020-02-23 09:50:40 +00:00
Sergey Protasov
235096362f
Update mutation.py (#811)
* Update mutation.py

* Add tests

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-23 09:49:39 +00:00
Amim Knabben
a12fc9299a
Exclude read_only fields from input (#882) 2020-02-23 09:48:33 +00:00
Gabor Markowski
7a14b77a41
fix a typo in the warning (#884) 2020-02-23 09:47:41 +00:00
B4rtware
6a19ab5a4b
use to_representation in favor of get_attribute (#848)
* use `to_represenation` in favor of `get_attribute`

* fix datetime type does get converted to a string

to_representation will convert the datetime field into a string representation. However the to_representation on the method field will only call its underlying method.

* fix add missing import

* apply black formatter

* add test for serializer method field

* apply black format

* improve backward compatibility

by using date's class contructor instead of fromisostring

* apply black format

* fix black format issue
2020-02-21 17:42:47 +00:00
dependabot[bot]
d1a9444401
Bump django from 3.0 to 3.0.3 in /examples/cookbook (#876)
Bumps [django](https://github.com/django/django) from 3.0 to 3.0.3.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.0...3.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-21 17:40:34 +00:00
dependabot[bot]
b222caa901
Bump django from 3.0 to 3.0.3 in /examples/cookbook-plain (#877)
Bumps [django](https://github.com/django/django) from 3.0 to 3.0.3.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.0...3.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-21 17:40:18 +00:00
Jonathan Kim
11dafd4c48
v2.8.2 2020-02-17 11:09:11 +00:00
Jonathan Kim
4e1b82a8d8
Check exclude fields correctly (#873) 2020-02-17 11:08:44 +00:00
Manuel Bojato
bbf119cd3b Add anacounda cloud badge to graphene-django (#874) 2020-02-08 20:28:50 +00:00
Leeward Bound
83bc32bc9d
Adding support for disabling enum creation on SerializerMutation (#851) 2020-02-07 10:17:56 +00:00
Ben Howes
6b8c5bdefc
Allow for easier template overrides in graphiql (#863)
* don't replace <body>

* Update graphene_django/templates/graphene/graphiql.html

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Fix editor styling and initialisation

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-07 10:16:11 +00:00
Jonathan Kim
f3f0608606
v2.8.1 2020-02-07 09:59:05 +00:00
Jonathan Kim
280b38f804
Only warn if a field doesn't exist on the Django model (#862)
* Only warn if a field doesn't exist on the Django model

Also don't warn if the field name matches a custom field.

* Expand warning messages
2020-02-07 09:55:38 +00:00
Jason Kraus
1310509fa1
feature(stalebot): bug, documentation, help wanted, and enhancement added to exempt labels (#869) 2020-02-05 22:16:51 +00:00
Jonathan Kim
5c3199883f
Fix dependencies for examples (#861) 2020-01-31 14:20:18 +00:00
Ilya Zhelyabuzhsky
8ec456285b
Fix force_str deprecation warning (#858) 2020-01-29 10:06:38 +00:00
luto
62ecbae614 resolve django encoding deprecation warnings (#853)
https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.encoding.force_text
2020-01-20 21:05:20 +00:00
luto
08f67797d8 resolve django translation deprecation warnings (#847)
https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
2020-01-11 14:52:41 +01:00
Jonathan Kim
96c38b4349
Update Django model form tests (#839)
* Clean up code and raise an exception if the model type is not found

* Update tests

* Fix tests
2020-01-11 14:49:44 +01:00
Jonathan Kim
de87573e0c
Add information on how to deal with CSRF protection (#838) 2020-01-11 14:49:17 +01:00