Commit Graph

488 Commits

Author SHA1 Message Date
arielRevo
9b4baab6b6
Fix nullability issue in construct_fields function (#34)
* Fix nullability issue in construct_fields function

* Update types.py
2024-03-07 17:24:52 +01:00
arielRevo
7e073e11e4
Update types.py. Add permission_raise_exception meta (#33)
* Update types.py

* Update types.py
2024-03-05 17:33:16 +01:00
Hiram Centelles Rodríguez
396c47f98b ensure_csrf_cookie removed from GraphQLView.dispatch 2021-12-14 11:43:44 +00:00
alejandronunez
133a597f6a
Agregar permisos por Type (#29)
* Adding permission_to_all_fields to DjangoObjectType meta data

* Adding permission_to_all_fields to DjangoObjectType meta data

* Adding permission_to_all_fields to DjangoObjectType meta data

* change raise_exception

* Adding custom PermissionDenied

* Adding custom PermissionDenied

* Adding custom PermissionDenied

* adding prints

* adding prints

* Removing prints

* Adding prints

* Adding prints

* Change permissions

* Fixing pylint

* Change __get_field_permissions__ method

* Revert __set_as_nullable__ method

* Change permissions

* Fixing resolvers

* Merge django fields with meta fields

* In get_resolver take parent_resolver when it have added permissions

* In get_resolver take parent_resolver when it have added permissions

* Change user_logged param for user

* Merging

* Fixing tests

* adding prints

* adding prints

* revert

* revert

* Testing

* Testing

* Fixing tests

* Fixing tests

* Testing

* Fixing bugs

* Fixing pylint

* Adding resolve_fields from interfaces

* Adding resolve_fields from interfaces

Co-authored-by: ariel1899 <radke1899@gmail.com>
2020-12-11 07:56:10 -07:00
ariel1899
9fd220fa60 Fixing fields 2020-04-20 12:27:30 -04:00
ariel1899
ef54b43ccc Fixing types 2020-04-20 10:50:03 -04:00
ariel1899
10b23cafef Fixing pylint 2020-04-20 10:36:25 -04:00
ariel1899
8fc368519f Change tests 2020-04-20 10:23:50 -04:00
ariel1899
2887830cf0 Change mutation 2020-04-20 10:06:09 -04:00
ariel1899
2743aae492 Fixing mutation 2020-04-17 17:30:21 -04:00
ariel1899
5427e2c939 Revert "Change"
This reverts commit c632d05a
2020-04-17 16:00:46 -04:00
ariel1899
c632d05a10 Change 2020-04-17 14:54:18 -04:00
ariel1899
4120971d11 Revert 2020-04-17 11:28:40 -04:00
ariel1899
2d117070a0 Change args 2020-04-17 10:22:09 -04:00
ariel1899
0feef9cc07 Change code with black 2020-04-16 17:12:18 -04:00
ariel1899
a644d03c5e Change code with black 2020-04-16 17:03:33 -04:00
ariel1899
96361fc6e7 Change types.py 2020-04-16 16:05:19 -04:00
ariel1899
f00ca9fca0 Change types.py, adding NonNull import 2020-04-16 15:55:35 -04:00
ariel1899
54fae91632 Change types.py 2020-04-16 15:49:04 -04:00
ariel1899
96110b05bb Revert "Fixing pylint"
This reverts commit e75c5845
2020-04-16 15:43:43 -04:00
ariel1899
e75c584559 Fixing pylint 2020-04-16 15:35:36 -04:00
ariel1899
d1f3c4d35a Fixing pylint 2020-04-16 15:08:04 -04:00
ariel1899
22f026293c Fixing pylint 2020-04-16 14:56:29 -04:00
ariel1899
ed1fdc209e Fixing pylint 2020-04-16 14:46:09 -04:00
ariel1899
44679aefc5 Fixing tests 2020-04-16 14:34:13 -04:00
ariel1899
98bbf39123 Fixing bugs 2020-04-16 14:29:38 -04:00
ariel1899
f110f24681 Fixing imports 2020-04-16 14:24:15 -04:00
ariel1899
3379266154 Merging 2020-04-16 14:20:32 -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
e1cfc0a80b
v2.9.1 2020-04-12 20:01:56 +01:00
Jonathan Kim
481d3ff35d
Fix DjangoModelFormMutation (#915)
* Fix DjangoModelFormMutation

* Try and fix tests

* Remove unused form
2020-04-12 20:01:30 +01:00
Jonathan Kim
9d9a14c36d
Fix failing tests (#931)
* Use proper model

* Remove failing test

* Add python 3.8 to test list
2020-04-12 16:18:41 +01:00
Jonathan Kim
150008aae5
v2.9.0 2020-03-13 10:13:46 +00: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
Jonathan Kim
348fcf37a0
Detect format from output file path (#868)
* Detect format from output file path

* Fix tests

* Add test for exporting graphql file

* Add some documentation
2020-03-13 10:04:55 +00:00
Jonathan Kim
b8e598d66d
Add options to override how Django Choice fields are converted t… (#860)
* Add new setting to create unique enum names

* Add specific tests for name generation

* Add schema test

* Rename settings field

* Rename setting

* Add custom function setting

* Add documentation

* Use format instead of f strings

* Update graphene_django/converter.py

Co-Authored-By: Syrus Akbary <me@syrusakbary.com>

* Fix tests

* Update docs

* Import function through import_string function

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-03-13 10:04:25 +00:00
Sergey Fursov
aeb04d5b5c
use actual root/variables/context args of the execute method (#878) 2020-02-23 09:50:40 +00:00
Sergey Protasov
235096362f
Update mutation.py (#811)
* Update mutation.py

* Add tests

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-23 09:49:39 +00:00
Amim Knabben
a12fc9299a
Exclude read_only fields from input (#882) 2020-02-23 09:48:33 +00:00
Gabor Markowski
7a14b77a41
fix a typo in the warning (#884) 2020-02-23 09:47:41 +00:00
B4rtware
6a19ab5a4b
use to_representation in favor of get_attribute (#848)
* use `to_represenation` in favor of `get_attribute`

* fix datetime type does get converted to a string

to_representation will convert the datetime field into a string representation. However the to_representation on the method field will only call its underlying method.

* fix add missing import

* apply black formatter

* add test for serializer method field

* apply black format

* improve backward compatibility

by using date's class contructor instead of fromisostring

* apply black format

* fix black format issue
2020-02-21 17:42:47 +00:00
Jonathan Kim
11dafd4c48
v2.8.2 2020-02-17 11:09:11 +00:00
Jonathan Kim
4e1b82a8d8
Check exclude fields correctly (#873) 2020-02-17 11:08:44 +00:00
Leeward Bound
83bc32bc9d
Adding support for disabling enum creation on SerializerMutation (#851) 2020-02-07 10:17:56 +00:00
Ben Howes
6b8c5bdefc
Allow for easier template overrides in graphiql (#863)
* don't replace <body>

* Update graphene_django/templates/graphene/graphiql.html

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Fix editor styling and initialisation

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-07 10:16:11 +00:00
Jonathan Kim
f3f0608606
v2.8.1 2020-02-07 09:59:05 +00:00
Jonathan Kim
280b38f804
Only warn if a field doesn't exist on the Django model (#862)
* Only warn if a field doesn't exist on the Django model

Also don't warn if the field name matches a custom field.

* Expand warning messages
2020-02-07 09:55:38 +00:00
Ilya Zhelyabuzhsky
8ec456285b
Fix force_str deprecation warning (#858) 2020-01-29 10:06:38 +00:00
luto
62ecbae614 resolve django encoding deprecation warnings (#853)
https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.encoding.force_text
2020-01-20 21:05:20 +00:00
luto
08f67797d8 resolve django translation deprecation warnings (#847)
https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
2020-01-11 14:52:41 +01:00