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

Update forms.py: Hstore validate - value not assignment #121

Closed
wants to merge 1 commit into from

Conversation

Usvad
Copy link
Contributor

@Usvad Usvad commented Jun 11, 2015

When define filter class for rest framework:
class DictionaryHstoreFilter(django_filters.Filter):
field_class = forms.DictionaryField

viewset forms is not validated.

When change in forms.py (in def validate_hstore - line 19):
if value == '' or value == 'null':

to...
if value is None or value == '' or value == 'null':
forms is validate work!

Thank you.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 1d0bc8a on Usvad:patch-1 into 1376a66 on djangonauts:master.

nemesifier pushed a commit that referenced this pull request Jun 28, 2015
@nemesifier
Copy link
Member

Merged manually: 8ea27bc
Thanks for contributing.

@nemesifier nemesifier closed this Jun 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants