#10295: pk name attribute not provided in <object> tag ---------------------------+------------------------------------------------ Reporter: kausikram | Owner: nobody Status: new | Milestone: Component: Serialization | Version: 1.0 Keywords: pk name | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ 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. -- Ticket URL: <http://code.djangoproject.com/ticket/10295> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
