Opened 16 years ago

Closed 16 years ago

Last modified 13 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

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)

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

Download all attachments as: .zip

Change History (5)

by chesnutd, 16 years ago

deserializer patch

comment:1 by Malcolm Tredinnick, 16 years ago

milestone: 1.0
Triage Stage: UnreviewedAccepted

comment:2 by Jacob, 16 years ago

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

comment:3 by Jacob, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [8676].

comment:4 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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