Commit Graph

824 Commits

Author SHA1 Message Date
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
alejandronunez
ae663474e0
Merge pull request #27 from revolico/upgrade-to-v2-9-1
Upgrade to v2 9 1
2020-04-23 06:53:40 -06: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
fba6de41dd
Update README.md 2020-04-13 11:54:17 +01:00
Jonathan Kim
cfc8fea7f5
Update README.md 2020-04-13 11:53:06 +01: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
Roy Segall
3483428f70
Adding documentation for installing django-filter (#928) 2020-04-12 12:57:11 +01:00
Jonathan Kim
613e1e31f4
Add slack link 2020-04-07 11:05:17 +01:00
fneitzel
b84f61afab
Documentation missing endpoint explanation (#918)
* Documentation missing endpoint explanation

Add some information about GRAPHQL_URL. Otherwise people run into ERROR 400 problems, if they have a different endpoint.

* Update docs/testing.rst

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

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-04-06 09:58:55 +01:00
Roy Segall
63418666d9
Adding Django filter as an installed app (#899) 2020-04-06 09:15:35 +01:00
Jonathan Kim
0da06d4d54
Update stale.yml 2020-03-18 12:59:32 +00:00
Ülgen Sarıkavak
cf9f59071e
Update dev dependencies (#903) 2020-03-14 10:40:41 +00: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
Akhil Gopi
13352216a4
Improv/documentation fixes (#895)
* Bump up the minimum support Django version.

* Update documentation to mention support for Django 1.11.

Co-authored-by: Akhil <akhil@healthifyme.com>
2020-03-07 17:17:45 +01: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