Ilya Zhelyabuzhsky
8ec456285b
Fix force_str deprecation warning ( #858 )
2020-01-29 10:06:38 +00:00
Jason Kraus
a64ba65bef
convert DRF ChoiceField to Enum ( #537 )
...
* convert DRF ChoiceField to Enum, also impacts FilePathField
* Pep8 fixes
* DRF multiple choices field converts to list of enum
* apply black formatting
2019-09-22 21:13:12 +01:00
rishabh
cd73cab699
converter.py: Fix typo posgres->postgres ( #765 )
...
Fixes typo for HStoreField and RangeField
converters.
2019-09-22 21:10:21 +01:00
Alexandre Kirszenberg
59f4f134b5
Set converted Django connections to required ( #610 )
2019-08-01 09:31:18 -07:00
Jason Kraus
b1a9293016
fix choices enum: if field can be blank then it isnt required ( #714 )
2019-08-01 09:07:52 +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
Jonathan Kim
612ba5a4ea
Add convert_choices_to_enum
option on DjangoObjectType Meta class ( #674 )
...
* Add convert_choices_to_enum meta option
* Add tests
* Run black
* Update documentation
* Add link to Django choices documentation
* Add test and documentation note
That setting to an empty list is the same as setting the value as False
* Fix Django warning in tests
* rst is not markdown
2019-06-17 18:48:29 +01:00
Jonathan Kim
775d2e3523
Update travis and tox ( #667 )
...
* Update travis and tox
* Use xenial distribution
* Don't install coveralls twice
* Add black and flake8 tox commands
* Remove Python 3.5 test for Django master
* Fix indent
* Ignore migrations
* Remove black for now
* Run black formatting (#668 )
* Run black format
* Update makefile
* Add black to travis build
2019-06-10 20:54:30 -07:00
Alexandre Kirszenberg
96934c4614
Correctly propagate help_text as description for many-to-* relations ( #579 )
...
* Correctly propagate help_text as description for many-to-* relations
* Trigger build
2019-06-09 17:19:05 -07:00
sierreis
5c191b9062
Add support for filterset_class meta parameter
...
* Allow for use of either filter_fields or filterset_class
* Add tests to check that the behavior is similar to filter_fields
* Add documentation to show how to make use of the parameter
2019-03-25 00:38:49 -04:00
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
546a82b7ec
Updated time imports
2018-06-05 13:32:32 -07:00
=
1352d4e02b
Fix func names
2017-12-18 12:33:42 -05:00
=
62c0694901
models.DateField corresponds to graphene Date Scalar
2017-12-05 15:04:29 -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
Abram Booth
b5e7614b05
More specific None check.
2017-10-31 09:33:16 -04:00
Syrus Akbary
a4cc360184
Merge branch 'master' into fix-deprecation-warnings
2017-08-29 22:33:10 -07: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
Ed Morley
b0df510872
Remove usages of deprecated field.rel
...
Since they were only required for Django <1.8 and cause the following
deprecation warnings:
```
utils.py:61: RemovedInDjango20Warning: Usage of field.rel has been deprecated. Use field.remote_field instead.
if hasattr(field, 'rel'):
utils.py:63: RemovedInDjango20Warning: Usage of ForeignObjectRel.to attribute has been deprecated. Use the model attribute instead.
return field.rel.to
```
Fixes #242 .
2017-08-14 14:01:04 +01: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
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
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
Paul Bailey
10699c0b6b
added time field
2016-11-23 12:25:59 -05:00
Paul Bailey
91365ff670
added timefield support
2016-11-23 11:29:04 -05:00
Syrus Akbary
5289cd06d7
Improved choice Enum converter
2016-11-14 22:30:20 -08:00
Syrus Akbary
8136223bb1
Added duration field and improved UUID conversion
2016-10-15 16:43:27 -07:00
Morgante Pell
5ad21f1765
Fix #19 by using choice keys as enum keys, not choice descriptions
2016-10-13 22:01:54 -04: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
7fbc3e69b1
Improved Django List retreival and added extra tests.
2016-09-21 19:34:30 -07:00
Conrad Kramer
17178cfcbf
Added a DjangoToManyField to handle to-many relationships
...
To-many relationships return a manager, which needs to be turned
into an iterable (its queryset) using `maybe_queryset`.
2016-09-20 21:25:05 -07:00
Syrus Akbary
5cba3f67fe
Fixed OneToOneField Django 1.6+ bug
2016-09-17 18:11:38 -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