Code

Opened 7 years ago

Closed 7 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:

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

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by gkelly@…

comment:1 Changed 7 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 7 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.