#8651 closed (fixed)
Deserializer does not allow for 0 based primary keys on a foreign keyed table
| Reported by: | chesnutd | Owned by: | Jacob |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The deserializer in core/serializers/python does not take into account that you can have a foreign key values of zero. The statement:
if field_value:
It should be changed to
if field_value is not None:
I've included that patch
Attachments (1)
Change History (5)
by , 17 years ago
| Attachment: | core_seralizers_python_patch.diff added |
|---|
comment:1 by , 17 years ago
| milestone: | → 1.0 |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
deserializer patch