Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#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


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)

core_seralizers_python_patch.diff (543 bytes) - added by chesnutd 15 years ago.
deserializer patch

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by chesnutd

deserializer patch

comment:1 Changed 15 years ago by Malcolm Tredinnick

milestone: 1.0
Triage Stage: UnreviewedAccepted

comment:2 Changed 15 years ago by Jacob

Owner: changed from nobody to Jacob
Status: newassigned
Triage Stage: AcceptedReady for checkin

comment:3 Changed 15 years ago by Jacob

Resolution: fixed
Status: assignedclosed

Fixed in [8676].

comment:4 Changed 12 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top