Syrus Akbary
ee19445290
Improved queryset getter for use .count instead of len
2015-12-04 19:28:20 -08:00
Adam Charnock
bbbf688449
Renaming order -> order_by (and fixing assert_not_orderable())
2015-12-04 21:39:55 +00:00
Adam Charnock
f616b597ac
Updating form converter method names to make more sense
2015-12-04 18:55:05 +00:00
Adam Charnock
3a23c1f940
Filtering options will now be read from the destination node's Meta data
2015-12-04 18:41:20 +00:00
Adam Charnock
b4b42db73e
Updating imports to work when singledispatch is available natively
2015-12-04 17:48:33 +00:00
Adam Charnock
166a143c18
No longer testing on python 3.3 as no supported django versions support it
2015-12-04 17:08:58 +00:00
Adam Charnock
c93492bacb
pep8 fixes
2015-12-04 17:03:29 +00:00
Adam Charnock
d9f1df1125
No longer building python 3.3 + django 1.9
2015-12-04 16:58:04 +00:00
Adam Charnock
1877c45f05
Updating django version requirement to Django 1.8
2015-12-04 16:52:43 +00:00
Adam Charnock
993a3751c4
Work on travis excludes
2015-12-04 16:21:43 +00:00
Adam Charnock
4398f6d6bd
Removing debug line from travis.yml. Omitting --download-cache seems to fix the issue
2015-12-04 16:19:30 +00:00
Adam Charnock
e8f491c1ff
Debugging travis django install
2015-12-04 16:13:45 +00:00
Adam Charnock
1bace349da
Updating travis config to build for multiple django versions
2015-12-04 16:00:17 +00:00
Adam Charnock
818b910991
Now supports django 1.9
2015-12-04 15:46:48 +00:00
Adam Charnock
c42d4a763d
Removing debug line
2015-12-04 14:10:31 +00:00
Adam Charnock
79e1b1c996
Removing unused imports
2015-12-04 14:10:06 +00:00
Adam Charnock
e7d7fad068
Remove django app loading which is no longer required post merge
2015-12-04 13:58:39 +00:00
Adam Charnock
7d2ec21855
Merge branch 'master' into feature/django
2015-12-04 13:58:00 +00:00
Adam Charnock
713e148f29
Work in progress on loading django models for tests
2015-12-04 13:57:01 +00:00
Syrus Akbary
3586fdfb77
Improvex syntax
2015-12-04 02:41:47 -08:00
Syrus Akbary
bee0af1125
Improved django debug
2015-12-04 02:34:12 -08:00
Syrus Akbary
28414955a2
Improved resolver function decorators
2015-12-03 23:41:28 -08:00
Syrus Akbary
967a9d2d03
Fixed old DjangoConnectionField usage
2015-12-03 23:23:32 -08:00
Syrus Akbary
14439155ee
Initial version debug schema in django
2015-12-03 22:22:49 -08:00
Syrus Akbary
0fa7f5c9aa
Improved tests
2015-12-03 21:49:10 -08:00
Syrus Akbary
f4cfd7dc8a
Improved package imports
2015-12-03 20:50:14 -08:00
Syrus Akbary
256a94bc81
Improved travis build
2015-12-03 19:10:11 -08:00
Syrus Akbary
53de24b705
Improved django example
2015-12-03 18:34:38 -08:00
Adam Charnock
a4e225d09f
Initial work on new django docs
2015-12-04 02:30:45 +00:00
Adam Charnock
be6b2bf290
Adding comments to filter_for_reverse_field()
2015-12-04 01:57:43 +00:00
Adam Charnock
64ec0ca94f
Adding support for filtering on to-many fields
2015-12-03 23:13:37 +00:00
Adam Charnock
ed8eac9cdf
removing stray commented line
2015-12-03 21:16:09 +00:00
Adam Charnock
6e07ef0c38
Ordering parameter now called 'order' rather than 'o'
...
This can be customsied via the GRAPHENE_ORDER_BY_FIELD setting,
or by extending GrapheneFilterSet.
I'm open to this being called 'order_by'.
2015-12-03 21:07:44 +00:00
Adam Charnock
4f054b3640
Adding django-filter to .travis.yml
...
As pip doesn't seem inclined to pickup on tests_require
2015-12-03 20:53:10 +00:00
Adam Charnock
375dfcbcc2
Fixing flake8 errors
2015-12-03 20:48:29 +00:00
Adam Charnock
fb45a83925
Moving django-filter dependent code into graphene.contrib.django.filter
...
Graphene should now run fine without django-filter. Tests will
also run without django-filter. However, I'm leaving it as a
requirement in setup.py's `tests_require` setting as testing
without it is probably not to be encouraged.
2015-12-03 20:01:37 +00:00
Adam Charnock
3709f9450b
Refactoring filterset creation logic
...
I have moved it from `DjangoFilterConnectionField` and pushed it
down into `FilterConnectionResolver` where I think it makes
more sense for it to live.
I have also pulled out `get_filtering_args_from_filterset()` as
a utility method.
2015-12-03 19:22:23 +00:00
Adam Charnock
70024ed0eb
Fixes for python 2.7 & PyPy
2015-12-03 18:21:28 +00:00
Adam Charnock
70cedc046f
Adding support for filtering by global ID
...
This is supported for AutoFields, OneToOneFields, and ForeignKey.
I have also added the GrapheneFilterSet base class. This provides
customsiations needed for Graphene. However, making developers
tie their FilterSets to Graphene would not be ideal as it would
prevent their use elsewhere. I therefore wrap any FilterSets
provided to Graphene with this additional functionality.
See `setup_filterset()` for how this is done. Such FilterSets
are also created by `custom_filterset_factory()` (in times
when a filterset is implicitly required via the `fields`
or `order_by` params passed to `DjangoFilterConnectionField`.
2015-12-03 17:55:41 +00:00
Adam Charnock
463c1f98df
Relocating UUID form field import code from converter.py to form_converter.py
2015-12-03 13:37:29 +00:00
Adam Charnock
49258827f8
DjangoFilterConnectionField now accepts fields, order_by, and extra_filter_meta
2015-12-03 13:32:43 +00:00
Adam Charnock
7bfeb086a4
Adding filter tests
2015-12-03 12:52:15 +00:00
Adam Charnock
b9f93918c8
Simplifying get_filterset_kwargs() as ImproperlyConfigured cannot be raised
2015-12-03 12:50:00 +00:00
Adam Charnock
930f7179d0
Adding tests for SimpleQuerySetConnectionResolver
2015-12-03 12:08:22 +00:00
Adam Charnock
e270792674
No need to create a Schema in test_fields.py
2015-12-03 11:42:08 +00:00
Adam Charnock
0c7be5c86e
pep8 fixes
2015-12-03 11:30:14 +00:00
Adam Charnock
d959cf5a84
Adding tests for DjangoFilterConnectionField
2015-12-03 11:09:34 +00:00
Adam Charnock
4a087ecb24
Adding tests for form field conversion
2015-12-03 10:46:43 +00:00
Adam Charnock
a5d73ac211
pep8 fixes
2015-12-03 10:07:21 +00:00
Adam Charnock
377e3f66cd
Adding PyCharm entry to .gitignore
2015-12-03 10:05:59 +00:00