Nikolai Røed Kristiansen
4517e32224
👷 Add pre-commit ( #1336 )
...
* 🔧 Add pre-commit config
Similar to graphene and graphene-sqlalchemy
* ⬆ Bump black
* 👷 Lint on CI
* ⬆ Bump flake8-black
* 🔧 Keep excluding migrations
* ⬆ Bump flake8
* 🔧 Remove black and flake8 from tox config
* ⬆ Update pre-commit versions
* Upgrade syntax to python 3.7+
* Format with pre-commit
dedent docs/schema.py to allow formatting
* Fix tests on python 3.7
2022-10-19 17:10:30 +03:00
Semyon Pupkov
0f40da7b31
Make errors in form mutation non nullable ( #1286 )
2022-09-23 11:47:10 +03:00
Eero Ruohola
608af578d4
Fix broken form.save() call in DjangoFormMutation.perform_mutate ( #1155 )
...
Django's plain (non-model) forms don't have the `save` method, so
calling this would just result in an `AttributeError` before this
change.
Resolves #1152
2021-04-10 20:30:15 -07:00
Tonye Jack
212524fd8c
Cleaned up unused imports and variables. ( #1146 )
...
* Cleaned up used imports and variables.
* Optimized imports.
* Fixed mixed imports.
2021-03-18 12:26:02 +03:00
Jason Kraus
c049ab7470
WIP: Merge master into v3 ( #1086 )
...
* merge master into v3
* fix order_by snake casing by checking if value is None, switch executor to execution_context_class since schema.execute no longer supports executor
* fix linting by removing duplicate defintion and test of convert_form_field_to_string_list
2020-12-30 15:37:57 -08:00
Jonathan Kim
481d3ff35d
Fix DjangoModelFormMutation ( #915 )
...
* Fix DjangoModelFormMutation
* Try and fix tests
* Remove unused form
2020-04-12 20:01:30 +01: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
Jonathan Kim
96c38b4349
Update Django model form tests ( #839 )
...
* Clean up code and raise an exception if the model type is not found
* Update tests
* Fix tests
2020-01-11 14:49:44 +01:00
Konstantin Alekseev
e2e496f505
Apply camel case converter to field names in DRF errors ( #514 )
...
* Apply camel case converter to field names in DRF errors
* Implement recursive error camelize, add setting.
2019-06-25 09:40:29 +01:00
Patrick Arminio
923d8282c7
Fix duplicated ErrorType declaration ( #539 )
...
* Add failing test case
* Fix duplicated ErrorType declaration
2019-03-31 12:01:43 +01:00
Waldecir Santos
c1bd3c4c15
Exclude id from mutation, useful for create operations.
2018-07-22 23:35:11 +01:00
Syrus Akbary
54ef52e1c6
Reformatted files using black
2018-07-19 16:52:24 -07:00
Syrus Akbary
10d2f3eea7
Commented the input form class, for now
2018-06-05 14:17:07 -07:00
Grant McConnaughey
c3938d1e4f
Fix line length
2017-11-29 15:31:26 -06:00
Grant McConnaughey
6d7a0d053d
Make id field an ID type
2017-11-29 15:25:24 -06:00
Grant McConnaughey
748dc4c509
Add id input field to model form mutation
2017-11-29 15:15:16 -06:00
Grant McConnaughey
d6dbe2a4a8
Default return_field_name is camcelcased
2017-11-29 14:20:56 -06:00
Grant McConnaughey
40610c64a3
Support instance kwarg
2017-11-29 14:12:02 -06:00
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
f5083cb190
Change form valid method names
2017-10-02 09:32:36 -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