Opened 17 years ago

Closed 17 years ago

#4922 closed (wontfix)

Add field types to python serializer

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

Description

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@… 17 years ago.

Download all attachments as: .zip

Change History (3)

by gkelly@…, 17 years ago

Attachment: fieldtypes.diff added

comment:1 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

Discussion on django-developers

comment:2 by Russell Keith-Magee, 17 years ago

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