pk name attribute not provided in <object> tag
|Reported by:||Kausikram||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
when django serializes an object it creates an object tag having the primary key value as an attribute pk="value" and then provides the other fields as its children. however it never mentions the name of the primary key anywhere. This turns to be disadvantageous when the primary key is not the default id field but something custom specified in the model.
Support by providing a name attribute for the object tag, similar to that provided for the fields tag would be much appreciated.
Change History (9)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|