Opened 17 years ago
Closed 17 years ago
#4922 closed (wontfix)
Add field types to python serializer
Reported by: | 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)
Change History (3)
by , 17 years ago
Attachment: | fieldtypes.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → 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.
Discussion on django-developers