Graphene-django: DjangoFilterConnectionField filter_fields on date

Created on 14 May 2017  路  9Comments  路  Source: graphql-python/graphene-django

Hi, I am using filter_fields on date. It seems like dates are interpreted as strings but django-filters expects a date object. Anyone faced the same issue before? Cheers

馃悰bug

All 9 comments

Same here

Fix has been already added in master branch, you just need to build it from it

https://github.com/graphql-python/graphene-django/blob/master/graphene_django/converter.py#L124

@vladimir-chernenko This is totally the solution, thank you so much!

In requirements.txt, instead of:

graphene-django==2.0.0

I've replaced with:

-e git+git://github.com/graphql-python/graphene-django.git#egg=graphene-django

Works like a charm.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

While this works for exact, I can't get it to work with other field lookups like year or year__gt. I'm on the latest version of everything as of today

805 might fix this but we should add a test for __gt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickhudkins picture nickhudkins  路  3Comments

licx picture licx  路  3Comments

khankuan picture khankuan  路  4Comments

x9sheikh picture x9sheikh  路  4Comments

flame0 picture flame0  路  4Comments