Luke Hodkinson
0b5f8e8507
Allow upserts when converting DRF serializers
...
Combine create and update into a single mutation. This can be
disabled by returning None from `load_existing`.
2017-10-30 14:57:35 +11:00
Luke Hodkinson
9ef31d849d
Use maybe_queryset in DjangoFilterConnectionField
...
In our projects we've found a need to inherit from
DjangoFilterConnectionField in order to customize the queryset. When
passing the queryset into "connection_resolver", an error was
raised about "get_queryset" not existing. This is due to the
assumption that the "base_manager" is always a manager. Using
"maybe_queryset" resolves the issue.
2017-10-25 15:06:48 +11:00
Syrus Akbary
283bccf9d3
Merge pull request #287 from spockNinja/fix_master_failing_test
...
Fix failing master test
2017-10-11 00:03:17 +02:00
Jacob
768fca668d
Trying conditional build install override
2017-10-10 00:09:28 -05:00
Jacob
886d909a9a
Pin drf to < 3.7, fixes failing tests
2017-10-09 23:47:21 -05:00
Syrus Akbary
77f036157b
Merge pull request #279 from nikolas/patch-1
...
intro tutorial: setup -> set up
2017-10-09 13:21:34 +02:00
Syrus Akbary
31085d8d7b
Merge pull request #283 from TheBlusky/patch-1
...
Update authorization.rst
2017-10-09 13:19:55 +02: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
Nik Nyby
04fc5a0305
intro tutorial: setup -> set up
...
"setup" is a noun, while "set up" is a verb. I've updated the usage here.
2017-10-04 23:13:00 -04:00
Syrus Akbary
f35e445963
Merge pull request #263 from jeremytiki/tutorial-update-graphene-2.0.dev
...
Issue #262 fix
2017-09-07 01:24:17 -07:00
Jeremy Spencer
84d063261e
Updated tutorial-plain to be in line with breaking changes in graphen-python>=2.0.dev: https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md\#simpler-resolvers
2017-09-04 08:04:10 -04:00
Syrus Akbary
0e28ccc30a
Updated versions in readme
2017-09-01 01:25:41 -07:00
Syrus Akbary
55f9d72ecc
Updated dev version
2017-09-01 01:19:22 -07:00
Syrus Akbary
f93251bcbb
Removed pypy from travis
2017-09-01 01:12:32 -07:00
Syrus Akbary
2a73e5e479
Fixed flake
2017-09-01 00:52:57 -07:00
Syrus Akbary
728bcacb0e
Merge pull request #261 from q3aiml/fix-serializermutation-regression
...
fix various SerializerMutation regressions
2017-09-01 00:47:34 -07:00
Syrus Akbary
992fbf0c44
Merge pull request #245 from edmorley/fix-deprecation-warnings
...
Remove usages of deprecated field.rel
2017-09-01 00:46:21 -07:00
Syrus Akbary
ec5dba35b3
Merge pull request #260 from ovidner/master
...
Removed duplicate bdist_wheel section
2017-09-01 00:39:52 -07:00
Andy Clayton
c130490b4f
ensure SerializerMutation.errors is None on success in 2.x
...
Upon success the result was correct but also included:
"errors": [
{
"message": "User Error: expected iterable, but did not find one
for field <SerializerMutation_Subclass>Payload.errors."
}
]
This seemed to be due to Payload.errors defaulting to graphene.List
rather than unset or None. Unsure what exactly changed with 2.x to break
this, so I welcome a better fix, but explicitly setting errors to None
also seems easy enough.
2017-08-31 12:37:54 -05:00
Andy Clayton
cc58b91e43
fix SerializerMutation regression for 2.x
...
72529b7
seems to break SerializerMutation by commenting out support for
input fields. As a result input only ever had a clientMutationId field.
2017-08-31 12:21:50 -05:00
Olle Vidner
30ced72236
Removed duplicate bdist_wheel section
2017-08-31 15:34:22 +02:00
Syrus Akbary
9cac83b168
Merge pull request #243 from jonatasbaldin/jonatas/fix-filtering-documentation
...
Fix lookup parameter on filtering documentation
2017-08-29 22:33:35 -07:00
Syrus Akbary
a4cc360184
Merge branch 'master' into fix-deprecation-warnings
2017-08-29 22:33:10 -07:00
Syrus Akbary
6de94a72bc
Merge pull request #246 from harisibrahimkv/patch-1
...
Fixes the link to django-filter `usage documentation`.
2017-08-29 22:31:02 -07:00
Syrus Akbary
1bea96b31e
Merge pull request #229 from graphql-python/2.0
...
Road to 2.0
2017-08-27 13:28:08 -07:00
Haris Ibrahim K. V
bf2b5a940e
Changes one more occurence of the django-filter link.
2017-08-15 14:32:59 +05:30
Haris Ibrahim K. V
b9c8bb57be
Fixes the link to django-filter usage documentation
.
2017-08-15 14:09:36 +05:30
Ed Morley
b0df510872
Remove usages of deprecated field.rel
...
Since they were only required for Django <1.8 and cause the following
deprecation warnings:
```
utils.py:61: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.
if hasattr(field, 'rel'):
utils.py:63: RemovedInDjango20Warning: Usage of ForeignObjectRel.to attribute has been deprecated. Use the model attribute instead.
return field.rel.to
```
Fixes #242 .
2017-08-14 14:01:04 +01:00
Jonatas Baldin
dead04da77
Correct lookup parameter on django-filter is lookup_expr
2017-08-12 23:24:50 -03:00
Syrus Akbary
2929d0866c
Merge pull request #236 from edmorley/generate-wheels
...
Generate a universal wheel in addition to the source distribution
2017-08-07 21:17:18 -07:00
Ed Morley
9fbb183820
Generate a universal wheel in addition to the source distribution
...
See:
https://packaging.python.org/tutorials/distributing-packages/#universal-wheels
https://docs.travis-ci.com/user/deployment/pypi/#Uploading-different-distributions
Fixes #219 .
2017-08-07 22:25:22 +01:00
Syrus Akbary
872ce3922e
Added support for wheel package
2017-07-31 22:46:27 -07:00
Syrus Akbary
a7034baa03
Fixed examples
2017-07-31 22:42:22 -07:00
Syrus Akbary
7768d1466b
Merge pull request #234 from graphql-python/2.0-newresolvers
...
Code adapted to new resolver API
2017-07-31 22:37:59 -07:00
Syrus Akbary
3d58148f03
Code adapted to new resolver API
2017-07-28 09:43:27 -07:00
Syrus Akbary
64118790ff
Fixed list resolver
2017-07-26 23:41:34 -07:00
Syrus Akbary
36480b7366
Updated version
2017-07-26 23:36:41 -07:00
Syrus Akbary
6ceb07c51c
Improved resolver consistency
2017-07-26 23:36:08 -07:00
Syrus Akbary
f5ecee3b1b
Updated version
2017-07-25 00:03:31 -07:00
Syrus Akbary
72529b70bb
Fixed all tests and flake issues
2017-07-24 23:42:40 -07:00
Syrus Akbary
48bcccdac2
Improved integration with Graphene 2.0
2017-07-24 22:27:50 -07:00
Syrus Akbary
18db46e132
Removed Meta inheritance in favor of __init_subclass_with_meta__
2017-07-24 22:27:26 -07:00
Syrus Akbary
cec1a84480
Merge pull request #216 from Txumari/patch-1
...
Fix install ingredients app
2017-07-23 21:15:59 -07:00
Syrus Akbary
1bddae1ced
Merge pull request #214 from khankuan/patch-3
...
Updated graphiql version for new features
2017-07-23 21:15:50 -07:00
Syrus Akbary
6ad64ddbef
Merge pull request #186 from patrick91/feature/rest-framework
...
Support for Django Rest Framework serializers
2017-07-23 21:12:20 -07:00
Patrick Arminio
42e91079b0
Merge pull request #1 from spockNinja/feature/rest-framework
...
Account for nested models and Dates/Times
2017-07-21 14:51:32 +01:00
Jacob Foster
afbe6c90b7
Add nested model mutation tests
2017-07-18 14:02:29 -05:00
Jacob Foster
81a6dff9d0
Update field converter tests
2017-07-18 14:02:28 -05:00
Jesus Mª
e425758f5b
Fix install ingredients app
...
You need the app installed for the migrations
2017-07-17 23:51:21 +02:00
Kuan
2790f3bc02
Updated graphiql version for new versions
2017-07-13 15:14:06 -07:00