Commit Graph

200 Commits

Author SHA1 Message Date
Syrus Akbary
54ef52e1c6 Reformatted files using black 2018-07-19 16:52:24 -07:00
Syrus Akbary
27a7c0e299 Added support for FilePathField 2018-06-05 14:39:51 -07:00
Syrus Akbary
bb6da28008 Merge branch 'master' into form_mutations 2018-06-05 13:31:29 -07:00
Syrus Akbary
a9e5beb9eb Merge branch 'master' into form_mutations
# Conflicts:
#	graphene_django/forms/converter.py
#	graphene_django/forms/tests/test_converter.py
2018-06-05 13:23:39 -07:00
Syrus Akbary
883d1778d5
Merge pull request #336 from urbandove/django2
support Django 2 + in tests
2018-06-05 13:02:09 -07:00
Syrus Akbary
7563045d75
Merge pull request #290 from DouglasConnect/fix-distinct-bug
Fix distinct bug
2018-06-05 12:57:19 -07:00
Syrus Akbary
33c6fdf5ab Added graphql-core min version to requirements 2018-06-05 01:24:53 -07:00
=
b331319aea Fix merge conflicts 2018-04-15 00:12:49 -04:00
Syrus Akbary
70dffa94e7
Merge pull request #212 from maqquettex/fix_cbv_inheritance
Inheritance support for GraphQLView (class attributes)
2018-03-29 23:19:29 -07:00
Syrus Akbary
d2c1e7c87b
Merge pull request #391 from mongkok/test-custom-meta-setdefault
Test DjangoObjectType custom meta .setdefault()
2018-03-29 21:02:35 -07:00
Daniel Bachler
c32340662c Remove print statement 2018-03-28 12:28:58 +02:00
Daniel Bachler
4d41160379 Update resolve method signature to 2.0 style in new test 2018-02-28 17:45:25 +01:00
Daniel Bachler
e05fbcc1b3 Fix failing unit test by handling cases where a connection is resolved involving a query with inner join and distinct that is then filtered and would be combined with a filtered queryset that is not distinct. 2018-02-28 14:41:47 +01:00
Daniel Bachler
23eb8eea80 Add failing test case 2018-02-28 14:41:47 +01:00
Syrus Akbary
dbd3957a9f
Merge pull request #340 from urbandove/qfactor
Fix qfactor rankings for HTTP-ACCEPT
2018-02-11 14:01:18 -08:00
Syrus Akbary
c0edb0c927
Merge pull request #373 from jm2242/proxy-model-support
Basic Proxy model support
2018-02-11 13:46:13 -08:00
=
12b022a49a Remove old test 2018-02-09 16:46:22 -05:00
Syrus Akbary
94ee97085f
Merge pull request #368 from sciyoshi/convert-date-time
Convert Date/Time/DateTime form fields to appropriate Graphene types
2018-02-08 12:15:00 -08:00
Syrus Akbary
adde400893
Merge pull request #335 from urbandove/master
models.DateField => graphene Date Scalar
2018-02-08 12:14:13 -08:00
Jonathan Mares
bfcfccfc8d undo cascade changes 2018-02-03 22:51:25 -05:00
=
1bf5da2a8d Remove commits related to django 2.0 support from pull request 2018-02-03 18:32:18 -05:00
Jonathan Mares
bc1d47efb5 fix a line break 2018-02-03 14:36:25 -05:00
Jonathan Mares
0b103417f9 on_delete param where needed due to django 2 requirements
added support for querying a model with objects that may be a proxy model, fixed and added tests

a few style changes
2018-02-03 11:10:04 -05:00
mongkok
55dc65753e Test custom meta .setdefault() 2018-02-03 21:12:35 +05:30
Syrus Akbary
e827b10e7b
Merge pull request #379 from mongkok/default-meta
Allow DjangoObjectType to have default meta
2018-02-02 15:06:09 -08:00
mongkok
3051374b46 Fix Python 2.7 super arguments 2018-02-03 03:23:10 +05:30
mongkok
b81e961c86 Test DjangoObjectType with custom meta #364 2018-02-03 03:16:58 +05:30
Anton Zhdan-Pushkin
3682fe0318 Test of inherited class 2018-02-01 16:39:06 +02:00
Samuel Cormier-Iijima
bb2d24ec27
Convert Date/Time/DateTime form fields to appropriate Graphene types 2018-02-01 09:57:24 +00:00
=
51f794edb6 Test Connectionfield with custom Manager 2017-12-12 12:52:32 -05:00
=
616c549d2c Fix ConnectionField Last Test 2017-12-12 12:49:02 -05:00
=
29935c2d33 Test Last works 2017-12-12 12:33:32 -05:00
=
de59d26968 Test: erro if last is greater than max - plus fix wrong variable 2017-12-12 12:24:11 -05:00
=
65e63026a0 Add tests 2017-12-11 21:23:00 -05:00
=
6008cb6de4 Fix qfactor rankings for HTTP-ACCEPT 2017-12-11 21:08:42 -05:00
=
f687406ac5 Add on_delete atrributes to test models foreignkeys 2017-12-07 13:00:22 -05:00
=
62c0694901 models.DateField corresponds to graphene Date Scalar 2017-12-05 15:04:29 -05:00
=
73706fa6bb Add on_delete atrributes to test models foreignkeys 2017-12-05 15:01:52 -05:00
Syrus Akbary
5661db88d1
Merge pull request #156 from aaxelb/master
Fix #87: Don't create duplicate Enums for fields with choices
2017-11-14 21:14:51 -08:00
Charles Haro
2a39f5d8ea Allow abstract Connection Class to DjangoObjectType
referred to as connection_class, it will instantiate the connection from the provided class or default to graphene.Connection if not supplied
2017-10-30 14:35:29 -07:00
Grant McConnaughey
666ddb2ff3 Merge form converter modules 2017-10-02 09:42:57 -05: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
Syrus Akbary
3d58148f03 Code adapted to new resolver API 2017-07-28 09:43:27 -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
7263485225 Merge pull request #194 from dvdmgl/173-annotation-bug
Fix graphene 1.3 annotation bug
2017-06-28 20:53:01 -07:00
Syrus Akbary
7c52aa3c7f Merge pull request #180 from arianon/master
Make DjangoConnectionField compatible with Promise-based iterables.
2017-06-24 15:44:51 -07:00
Syrus Akbary
3667157e4a Merge pull request #145 from dotsbb/fix-too-broad-exception
Wrong error message "invalid JSON" when "RequestDataTooBig" raised
2017-06-24 15:44:15 -07:00
Syrus Akbary
7eb4106e7c Merge pull request #202 from patrick91/feature/up-django
Remove support to django 1.6 and 1.7
2017-06-24 15:43:35 -07:00
Patrick Arminio
82055ac109 Add missing imports 2017-06-23 13:05:11 +01:00
Patrick Arminio
712d57e043 Delete RelatedObject import 2017-06-23 12:51:19 +01:00
Patrick Arminio
7fd6125199 Fix compatibility with pypy 2017-06-23 12:48:32 +01:00
Patrick Arminio
245ebe3d91 Remove some compatility layers for django 1.6 2017-06-23 12:32:43 +01:00
David Miguel
b3c761b1c8 Fix graphene 1.3 annotation bug
Issue #173
2017-06-06 19:19:29 +01:00
Jacob Foster
74e4e1aa77 Drop reverse flag, remove duplicates in get_model_fields 2017-05-25 11:01:29 -05:00
Jacob Foster
ca06d74195 Make test sort for stable comparison 2017-05-22 17:36:00 -05:00
Jacob Foster
cfe38ae208 Add tests 2017-05-22 17:20:56 -05:00
arianon@openmailbox.org
4350582c52 Support Connections created from Promises 2017-05-19 19:12:28 -04:00
Syrus Akbary
46a1ddedd8 Added RELAY_CONNECTION_MAX_LIMIT and RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST settings
Relay connections will be limited to 100 records by default.
2017-04-15 02:15:17 -07:00
Syrus Akbary
cc03da0598 Moved tests to filter field tests 2017-04-15 01:17:53 -07:00
Syrus Akbary
5833cb83be Fixed filterset limit issue 2017-04-15 01:00:02 -07:00
Syrus Akbary
055c6e2359 Merge branch 'master' into fix-filter-and-resolver 2017-04-15 00:04:19 -07:00
Alexey Subbotin
33b2b42e6f Rewrite unit test to make it working on all versions of django 2017-04-12 13:04:03 +02:00
Alexey Subbotin
a9f34dab93 request.body might raise RawPostDataException, RequestDataTooBig, UnreadablePostError exceptions which are not related to invalid JSON data 2017-04-12 12:43:21 +02:00
Sam Parkinson
46048cd218
Add tests for DjangoObjectType only/exclude_fields 2017-03-11 07:40:04 +11:00
Niall
2117cb2b01 Example for order_by being ignored 2017-03-06 20:19:39 +00:00
Niall
7210e308ec Fix test 2017-03-06 20:00:01 +00:00
Niall
e2284fefb5 Clean up 2017-03-06 18:20:31 +00:00
Niall
69457cffdf Attempt fix. Breaks tests 2017-03-06 18:13:40 +00:00
Niall
67804fdc09 Add broken test 2017-03-05 19:17:00 +00:00
Niall
7085437a12 Fix filtering with a resolver and DjangoFilter filter. 2017-03-05 17:13:09 +00:00
Syrus Akbary
1139507a14 Merge pull request #123 from HorizonXP/fix-batch-response-format
Remove payload key from response and stick to original format.
2017-03-04 18:25:12 -08:00
Xitij Ritesh Patel
f720912415 Update tests to expect new batch response format 2017-03-03 15:04:22 -05:00
Syrus Akbary
335339c7a8 Fixed Django 1.8 issue 2017-03-02 18:38:03 -08:00
Syrus Akbary
2660de969f Improved batch view tests 2017-02-20 01:58:21 -08:00
Syrus Akbary
f217731066 Improved GraphQL batch view errors. 2017-02-20 01:58:21 -08:00
Syrus Akbary
2d1ab4b92a Merge pull request #82 from gamingexperience/fix/node-filtering
Fixes filtering in nested nodes.
2017-01-14 18:35:52 -08:00
Pablo Chinea
89d0f0ca92 Handles multiple collisions with the same key. 2017-01-05 09:49:26 +00:00
Pablo Chinea
2c26774c62 Avoid collisions in choices names conversion. 2017-01-04 16:23:17 +00:00
Pablo Chinea
16a0d9ce58 Fixes identation in queries test file. 2016-12-30 12:27:45 +00:00
Pablo Chinea
b5a450cb6d Fixes nested node test when django-filter is not installed. 2016-12-30 09:57:50 +00:00
Pablo Chinea
dfb55cda6b Adds test for nested node filtering. 2016-12-30 09:34:59 +00:00
Paul Bailey
402cd645e8 added time field test 2016-11-23 12:24:53 -05:00
Paul Bailey
509645d3bd added time field test 2016-11-23 12:07:40 -05:00
Syrus Akbary
5289cd06d7 Improved choice Enum converter 2016-11-14 22:30:20 -08:00
Syrus Akbary
854aa4aa9b Fixed tests 2016-11-14 22:30:20 -08:00
Timothy Laurent
6801b69ce9 don\'t use fields that end in a plus 2016-11-09 23:56:14 -08:00
Michał Ochman
0a18558bf6 Add support for batching several requests into one
Batch format compatible with ReactRelayNetworkLayer (https://github.com/nodkz/react-relay-network-layer)
2016-10-31 12:03:56 +01:00
Syrus Akbary
d73f4aa235 Added support for SimpleLazyObject. Fixed #22 2016-10-15 17:40:12 -07:00
Syrus Akbary
8136223bb1 Added duration field and improved UUID conversion 2016-10-15 16:43:27 -07:00
Syrus Akbary
459270cc09 Fixed tests 2016-10-15 16:04:32 -07:00
Syrus Akbary
1a728e4e88 Fixed tests 2016-09-22 20:49:51 -07:00
Syrus Akbary
b8f9fec674 Added required conversion to model and form fields. Fixed #2 2016-09-22 20:03:47 -07:00
Syrus Akbary
f806fefff3 Fixed tests 2016-09-19 22:53:56 -07:00
Syrus Akbary
70dbd4b512 Improved PEP8 syntax 2016-09-19 22:15:10 -07:00
Syrus Akbary
d11719507c Fixed tests 2016-09-19 22:11:48 -07:00
Syrus Akbary
3aa929fdc9 Moved django-graphql-view and django-graphiql into graphene-django 😎 2016-09-19 22:04:23 -07:00
Syrus Akbary
7756b0df8f Fixed Python3 tests 2016-09-17 17:28:41 -07:00
Syrus Akbary
4e23c3ccf6 Improved python syntax and sorts (pep8). Improved Readme 2016-09-17 17:09:56 -07:00
Syrus Akbary
0434899b4e Isolated Graphene Django in a new package 2016-09-17 16:31:17 -07:00