Jason Kraus
8f354ee890
cleanup test choices
2019-07-09 10:48:20 -07:00
Jason Kraus
6d5cfee94f
apply black formatting
2019-06-17 11:39:21 -07:00
Jason Kraus
4ba3b544c9
Merge remote-tracking branch 'up/master' into enum_conversion_fixes
2019-06-17 11:38:16 -07:00
Jonathan Kim
612ba5a4ea
Add convert_choices_to_enum
option on DjangoObjectType Meta class ( #674 )
...
* Add convert_choices_to_enum meta option
* Add tests
* Run black
* Update documentation
* Add link to Django choices documentation
* Add test and documentation note
That setting to an empty list is the same as setting the value as False
* Fix Django warning in tests
* rst is not markdown
2019-06-17 18:48:29 +01:00
dependabot[bot]
894b1053a2
Bump django from 2.1.6 to 2.1.9 in /examples/cookbook-plain ( #669 )
...
Bumps [django](https://github.com/django/django ) from 2.1.6 to 2.1.9.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/2.1.6...2.1.9 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-06-17 18:48:15 +01:00
dependabot[bot]
6169346776
Bump django from 1.11.20 to 1.11.21 in /examples/cookbook ( #670 )
...
Bumps [django](https://github.com/django/django ) from 1.11.20 to 1.11.21.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/1.11.20...1.11.21 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-06-17 17:08:51 +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
Jason Kraus
de7edaae76
expand test case to cover underscores that are sunder, dunder, and general underscore
2019-06-11 10:29:49 -07:00
Jonathan Kim
775d2e3523
Update travis and tox ( #667 )
...
* Update travis and tox
* Use xenial distribution
* Don't install coveralls twice
* Add black and flake8 tox commands
* Remove Python 3.5 test for Django master
* Fix indent
* Ignore migrations
* Remove black for now
* Run black formatting (#668 )
* Run black format
* Update makefile
* Add black to travis build
2019-06-10 20:54:30 -07:00
Jason Kraus
59184a117d
prefix underscore choice name only if it is dunder, otherwise underscores like sunder are allowed
2019-06-10 17:16:10 -07:00
Jason Kraus
43233d7d9d
expand test assertions so that test enum conversion with underscores is more interpretable
2019-06-10 11:47:52 -07:00
Mel van Londen
44e9b0d0c5
Add stale bot ( #661 )
2019-06-10 11:08:41 -07:00
Jason Kraus
6008e4d089
fix unit tests
2019-06-10 09:42:52 -07:00
Jason Kraus
71ba7fb82b
Merge remote-tracking branch 'up/master' into enum_conversion_fixes
2019-06-10 09:30:01 -07:00
Jason Kraus
9275163fa0
test and handle choices that start with an underscore, issue #141
2019-06-10 09:29:55 -07:00
mvanlonden
e3017b5e62
increment version to match release tag
2019-06-10 09:29:55 -07:00
Jason Kraus
5b45c5ddf6
fix python 2 test regression: set source file encoding to utf8
2019-06-10 09:29:55 -07:00
Jason Kraus
1bcc1ef328
fix python 2 test regression
2019-06-10 09:29:55 -07:00
Jason Kraus
8d42c7c23e
chomp out non-ascii characters from enum name generation
2019-06-10 09:29:55 -07:00
Jason Kraus
3f35b1f043
cover enum case where choice begins with a number
2019-06-10 09:29:54 -07:00
Alexandre Kirszenberg
96934c4614
Correctly propagate help_text as description for many-to-* relations ( #579 )
...
* Correctly propagate help_text as description for many-to-* relations
* Trigger build
2019-06-09 17:19:05 -07:00
Emil Goldsmith Olesen
fcc491fffb
Add watch option to graphql_schema ( #656 )
...
* Add watch option to graphql_schema
* add documentation for grapql_schema --watch
2019-06-09 17:06:50 -07:00
Mel van Londen
a9a8d672e9
Merge pull request #600 from sierreis/filterset-class
...
Add support for filterset_class meta parameter
2019-06-09 16:48:46 -07:00
Mel van Londen
b271b259bd
Merge pull request #603 from abettke/fix/enhanced-proxy-model-support
...
Adds enhanced support for proxy models.
2019-06-09 16:47:10 -07:00
Mel van Londen
83cc0d793b
Merge pull request #436 from cloudspectatordevelopment/tox
...
Added tox.ini and improved travis.yml
2019-06-09 16:45:28 -07:00
Abraham Toriz Cruz
f617b2a9c2
django 1.11.19 is not available, probably for security reasons ( #652 )
2019-06-09 16:33:57 -07:00
Emil Goldsmith Olesen
3cde872e28
Stop enforcing csrf checks in GraphQLTestCase ( #658 )
2019-06-09 16:30:48 -07:00
kamilkijak
c90c27f364
Add support for write_only fields in SerializerMutation ( #555 )
2019-06-09 16:25:34 -07:00
Mel van Londen
ab551f4a15
Merge pull request #663 from robertpro/fix-o2o-relation
...
Fix o2o relation
2019-06-09 14:58:05 -07:00
mvanlonden
94602c77c6
add reverse relation one to one query test
2019-06-09 12:41:04 -07:00
José Roberto Meza Cabrera
ce6e6dd6e1
Fixes O2O relations
2019-06-09 14:15:46 -05:00
José Roberto Meza Cabrera
67b21cb36f
Revert "Drop old Django compatibility code"
...
This reverts commit 6acd917cf7
.
2019-06-09 14:08:31 -05:00
Paul Hallett
bad8e13282
Merge pull request #657 from sweenr/patch-1
...
Update mutations.rst
2019-06-07 09:06:09 +01:00
Richard Sween
d06217d203
Fix Mutations Relay example imports
...
Per comment here: https://github.com/graphql-python/graphene-django/pull/657#issuecomment-499618785
2019-06-06 13:53:16 -05:00
Richard Sween
fc49a50cc3
Update mutations.rst
...
I believe the `[1]` was ommitted from the `from_global_id` call as that method returns a tuple of type and id, of which we're only interested in the id here. Took me half a day to figure out why this code wasn't working today. See function def here: https://github.com/graphql-python/graphql-relay-py/blob/master/graphql_relay/node/node.py#L67
2019-06-05 19:43:51 -05:00
Paul Hallett
0916e03cb3
Merge pull request #655 from mvanlonden/increment-version
...
Increment version to match release tag
2019-06-03 08:59:58 +01:00
mvanlonden
ddf8d24bf5
increment version to match release tag
2019-05-31 14:38:34 -07:00
Anthony Monthe
cb9eed6765
Added tox.ini
...
Updated Travis YML
2019-05-22 01:49:52 +01:00
Paul Hallett
b0cba398a1
Merge pull request #647 from dulmandakh/react-16.8.6
...
bump react to 16.8.6
2019-05-21 14:18:45 +01:00
Dulmandakh
7690c2c002
bump react to 16.8.6
2019-05-20 19:41:25 +08:00
Paul Hallett
1d1b9e8994
Merge pull request #646 from dulmandakh/graphiql-0.13.0
...
bump graphiql to 0.13.0, and rename __debug to _debug
2019-05-20 11:23:51 +01:00
Dulmandakh
49aedf171a
bump graphiql to 0.13.0, and rename __debug to _debug due to __ limitations
2019-05-20 17:48:28 +08:00
Paul Hallett
74263b2eb1
Merge pull request #642 from changeling/fix_cookbook_settings
...
Correct examples/cookbook settings.py.
2019-05-16 09:09:26 +01:00
Paul Hallett
80125c3077
Merge pull request #641 from changeling/fix_babel_link
...
Correct Babel Relay Plugin docs link per Issue 358.
2019-05-16 09:08:31 +01:00
changeling
04fe299a6e
Corrected docs/queries.rst. ( #633 )
...
* Corrected typos in docs/queries.rst.
* Add basic resolvers to Relay Full example in docs/queries.rst.
Added basic resolvers to Full example in Relay section.
* Remove question and question resolver.
* Add query example to queries.rst.
Added query example in Relay section.
Minor clean-up.
2019-05-15 20:50:55 -04:00
changeling
2edf7f4ec0
Correct examples/cookbook settings.py.
...
See https://github.com/graphql-python/graphene-django/issues/455 .
2019-05-15 17:02:26 -05:00
changeling
884c4cce0c
Correct Babel Relay Plugin docs link per Issue 358.
...
See graphql-python#358.
2019-05-15 16:27:35 -05:00
Paul Hallett
96908beaf7
Merge pull request #639 from Zorig/master
...
graphiql version upgrade close #572
2019-05-15 11:09:39 +01:00
zorig
ba64bceab0
graphiql version upgrade
2019-05-15 17:22:29 +08:00
Paul Hallett
e26a9f2a44
Merge pull request #631 from graphql-python/fix-628
...
Fix importing error for GraphQLTestCase
2019-05-13 18:12:22 +01:00