Opened 11 years ago

Closed 11 years ago

#4922 closed (wontfix)

Add field types to python serializer

Reported by: gkelly@… Owned by: Jacob
Component: Core (Serialization) Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I thought adding the Django field type to the python serializer would be a good idea, since field types are given as an attribute in the XML serializer. I'm not quite sure how to do this for related fields, but I'm attaching a patch that's a start.

Attachments (1)

fieldtypes.diff (982 bytes) - added by gkelly@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by gkelly@…

Attachment: fieldtypes.diff added

comment:1 Changed 11 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedDesign decision needed

Discussion on django-developers

comment:2 Changed 11 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

I'm not sure I see the value here. Field types are useful in XML because all content is a string, so you need to be able to work out when to convert to an integer/date etc. This isn't required for the python-based types, because JSON/YAML are typed syntaxes.

If you have a particularly good argument for why this is required, feel free to reopen the ticket.

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