Opened 8 years ago

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

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by gkelly@…

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

Discussion on django-developers

comment:2 Changed 8 years ago by russellm

  • Resolution set to wontfix
  • Status changed from new to closed

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