Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum field not working #19

Closed
nyejon opened this issue Jun 25, 2020 · 2 comments
Closed

Enum field not working #19

nyejon opened this issue Jun 25, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nyejon
Copy link
Contributor

nyejon commented Jun 25, 2020

Hi

I am trying to filter on an Enum field, but if I add one to the filter I get:

File "/opt/venv/lib/python3.8/site-packages/graphene_sqlalchemy_filter/filters.py", line 531, in _generate_default_filters
fields = cls._generate_filter_fields(
File "/opt/venv/lib/python3.8/site-packages/graphene_sqlalchemy_filter/filters.py", line 610, in _generate_filter_fields
filter_field = field_type(description=doc)
TypeError: function() missing required argument 'code' (pos 1)

Do you have any ideas how to fix this?

@art1415926535 art1415926535 added the bug Something isn't working label Jun 26, 2020
@art1415926535 art1415926535 self-assigned this Jun 26, 2020
@art1415926535
Copy link
Owner

Fixed in version 1.11.0.

Required graphene-sqlalchemy >= 2.2.0

@nyejon
Copy link
Contributor Author

nyejon commented Jun 27, 2020

Fantastic! That was fast :) Tested and it's working

@nyejon nyejon closed this as completed Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants