Commit Graph

956 Commits

Author SHA1 Message Date
Grant McConnaughey
bf7ad7eeda Test invalid forms 2017-10-02 13:15:29 -05:00
Grant McConnaughey
463ce68b16 Change mutations to new 2.0 format 2017-10-02 13:03:20 -05:00
Grant McConnaughey
666ddb2ff3 Merge form converter modules 2017-10-02 09:42:57 -05:00
Grant McConnaughey
f5083cb190 Change form valid method names 2017-10-02 09:32:36 -05:00
Grant McConnaughey
507246468b Document form mutations 2017-10-02 09:32:36 -05:00
Grant McConnaughey
4f904f4700 Test mutation 2017-10-02 09:31:58 -05:00
Grant McConnaughey
80a06a0354 Fix flake8 issue 2017-10-02 09:31:58 -05:00
Grant McConnaughey
26a4d315c5 Use options correctly 2017-10-02 09:31:58 -05:00
Grant McConnaughey
f034946cda Add Django form-based mutations 2017-10-02 09:31:58 -05:00
Ivan Belokobylskiy
459d7df42b Access to batch endpoint without parameters fixed
ValueError: max() arg is an empty sequence exception fixed
2017-09-27 18:46:32 +03:00
Miguel
73905547c8 Fix tutorial-plain.rst typo in " Getting single objects" code example 2017-09-09 15:21:34 -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
Abram Booth
be20450a66 Don't break on inherited choices fields.
Store converted Django fields in the registry, so choices enums are not
created multiple times when inherited by child models.
2017-08-24 12:49:02 -04: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
Bas Stottelaar
4bdcf054eb Pass context object to FilterSet instance to support request-baed filtering (fixes #203). 2017-07-28 16:46:39 +02: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