#2685 closed defect (fixed)
[patch] Blank USStateField data with blank=True becomes None, breaks INSERTs/UPDATEs
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Validators | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If you have a model with a USStateField(blank=True)
field, blank values get turned into None
and cause INSERT
s and UPDATE
s to fail with blank values, due to inserting a NULL
value into a NOT NULL
field.
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | django-blank-state.diff added |
---|
comment:1 by , 18 years ago
Summary: | Blank USStateField data with blank=True becomes None, breaks INSERTs/UPDATEs → [patch] Blank USStateField data with blank=True becomes None, breaks INSERTs/UPDATEs |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixes forms.USStateField.html2python