-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
HStoreField
should map to DictField(child=CharField(allow_blank=True)
#2659
Labels
Milestone
Comments
DavidMuller
changed the title
CharMapping Field allow_blank=True
CharMappingField allow_blank=True
Mar 9, 2015
Seems reasonable. |
Same thing for DateTimeField please. |
I don't understand how |
It lacks "allow_blank=True" on DateField and DateTimeField. |
@debnet Not really related to this ticket. |
tomchristie
changed the title
CharMappingField allow_blank=True
Jul 27, 2015
HStoreField
should map to DictField(child=CharField(allow_blank=True)
This was referenced Mar 9, 2017
This was referenced Oct 16, 2017
This was referenced Nov 6, 2017
This was referenced Nov 14, 2017
This was referenced Dec 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These 3 lines in
serializers.py
currently map a postgresHstoreField
to a custom DRFDictField
calledCharMappingField
:I believe, however, to mirror the default implementation of
HstoreField
, the childCharField()
should haveallow_blank=True
. Consider how the current implementation behaves:The text was updated successfully, but these errors were encountered: