ariel1899
f110f24681
Fixing imports
2020-04-16 14:24:15 -04:00
ariel1899
31704a4ec6
Merge remote-tracking branch 'upstream/master' into upgrade-to-v2-9-1
...
# Conflicts:
# graphene_django/fields.py
# graphene_django/forms/mutation.py
# graphene_django/forms/tests/test_mutation.py
# graphene_django/tests/test_fields.py
# graphene_django/tests/test_types.py
# graphene_django/tests/test_utils.py
# graphene_django/types.py
# graphene_django/utils/utils.py
2020-04-16 14:16:05 -04: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
Jason Kraus
a818ec9017
replace merge_queryset with resolve_queryset pattern ( #796 )
...
* replace merge_queryset with resolve_queryset pattern
* skip double limit test
* Update graphene_django/fields.py
Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>
* yank skipped test
* fix bad variable ref
* add test for annotations
* add test for using queryset with django filters
* document ththat one should use defer instead of values with queysets and DjangoObjectTypes
2019-11-28 10:49:37 +00:00
Jonathan Kim
fea9b5b194
Extend DjangoListField to use model queryset if none defined ( #732 )
...
* Fix model property
* Only allow DjangoObjectTypes to DjangoListField
* Resolve model queryset by default
* Add some more tests to check behaviour
2019-09-17 09:14:18 -07:00
Jonathan Kim
40ae7e53ec
Fix manager check in DjangoConnectionField ( #693 )
...
* Fix default manager check
* Add test
2019-07-02 19:37:50 +01:00
Jonathan Kim
54cc6a4b13
Enforce NonNull for returned related Sets and their content ( #690 )
...
* Enforce NonNull for returned related Sets and their content. https://github.com/graphql-python/graphene-django/issues/448
* Run format.
* Remove duplicate assertion
2019-06-25 16:30:30 +01:00
Olivia Rodriguez Valdes
c6d204ba19
Merge branch 'master' into python3-compat#22
2019-05-30 11:15:18 -04:00
Olivia Rodriguez Valdes
3ff6dfb451
Add reduce import
2019-05-30 11:13:42 -04:00
Paul Hallett
0d178b38fb
Merge pull request #609 from acu/fix-connection-field-required
...
Fix passing required=True to DjangoConnectionField
2019-05-06 12:01:12 +01:00
Alexandre Kirszenberg
b49d315a39
4 spaces
2019-05-01 15:49:54 +02:00
Olivia Rodriguez Valdes
923585be87
Check none values before data-loading ut
2019-04-11 15:36:44 -04:00
Olivia Rodriguez Valdes
9128889353
Add load-many support
2019-04-11 09:03:17 -04:00
Olivia Rodriguez Valdes
9caa57a7ff
Accept source_loader from kwargs in DataLoaderField resolver
2019-04-10 14:16:08 -04:00
Olivia Rodriguez Valdes
ee50031cf6
Add DataLoaderField
2019-04-10 11:28:33 -04:00
Jason Kraus
0a5020bee1
Get queryset ( #528 )
...
* first attempt at adding get_queryset
* add queryset_resolver to DjangoConnectionField and fix test failures
* cleanup get_queryset API to match proposal as close as possible
* pep8 fix: W293
* document get_queryset usage
* add test for when get_queryset is defined on DjangoObjectType
2019-03-31 12:01:17 +01:00
Alexandre Kirszenberg
8beadc759f
Correctly propagate NonNull to inner connection type
2019-03-30 19:43:11 +01:00
Olivia Rodriguez Valdes
41222c1565
Fix lint errors
2019-03-04 08:51:21 -05:00
Olivia Rodriguez Valdes
1e1e849f4a
Rename to DjangoField
2019-03-01 14:34:54 -05:00
Olivia Rodriguez Valdes
e7a4538a3e
Merge branch 'permissions-to-fields#3' into permission-to-type#5
...
# Conflicts:
# graphene_django/fields.py
2019-03-01 12:48:37 -05:00
Olivia Rodriguez Valdes
8912175cc5
Set permissions as optional
2019-03-01 12:44:52 -05:00
Olivia Rodriguez Valdes
76cbad1fb2
Change DjangoField to PermissionField
2019-03-01 12:42:29 -05:00
Olivia Rodriguez Valdes
1adb13dff8
Set function as unbound
2019-02-28 16:35:01 -05:00
Olivia Rodriguez Valdes
9a645f3ef1
Refactor DjangoObjectType
2019-02-28 15:29:00 -05:00
Olivia Rodriguez Valdes
1382e93b28
Merge branch 'permissions-to-fields#3' into permission-to-type#5
...
# Conflicts:
# graphene_django/fields.py
2019-02-28 15:18:46 -05:00
Olivia Rodriguez Valdes
c518ddbf4b
Set raise_exception as arg
2019-02-28 15:15:46 -05:00
Olivia Rodriguez Valdes
eca43192b0
Change get_unbound_function importation
2019-02-28 15:10:22 -05:00
Olivia Rodriguez Valdes
d14af48866
Change naming
2019-02-28 15:05:39 -05:00
Olivia Rodriguez Valdes
ad7497de10
Refactor PermissionField
2019-02-28 14:58:20 -05:00
Olivia Rodriguez Valdes
7c936d9565
Merge branch 'permission-to-type#5' into permission-to-type
2019-02-18 15:22:54 -05:00
Olivia Rodriguez Valdes
da26750acf
Merge branch 'permissions-to-fields#3' into permission-to-type#5
2019-02-18 15:22:38 -05:00
Olivia Rodriguez Valdes
7d643f3b71
Get bound
2019-02-18 15:15:13 -05:00
Olivia Rodriguez Valdes
7b86824afa
Mixing DjangoObjectType and DjangoPermissionObjectType
2019-02-18 15:00:35 -05:00
Olivia Rodriguez Valdes
120b94edd2
Merge branch 'permissions-to-fields#3' into permission-to-type#5
...
# Conflicts:
# graphene_django/fields.py
2019-02-18 11:12:02 -05:00
Olivia Rodriguez Valdes
813b31e965
Get unbound function to resolver
2019-02-15 16:19:15 -05:00
Olivia Rodriguez Valdes
b8eef4731a
Set default resolver
2019-02-15 15:19:04 -05:00
Olivia Rodriguez Valdes
106d3e063d
Add test to permission type
2019-01-07 08:25:19 -05:00
Olivia Rodriguez Valdes
beba130657
Refactoring permission field
2019-01-07 07:44:20 -05:00
Olivia Rodriguez Valdes
4c6e7209c3
Add viewer management
2019-01-04 15:02:50 -05:00
Olivia Rodriguez Valdes
5f17d6e025
Add PermissionField
2019-01-04 14:24:15 -05:00
Syrus Akbary
54ef52e1c6
Reformatted files using black
2018-07-19 16:52:24 -07:00
Daniel Bachler
34f5978446
Move distinct check code to merge_querysets again
2018-02-28 17:52:27 +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
=
de59d26968
Test: erro if last is greater than max - plus fix wrong variable
2017-12-12 12:24:11 -05: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
6ceb07c51c
Improved resolver consistency
2017-07-26 23:36:08 -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