#9522: Python serializer doesn't use base Serializer.get_string_value
---------------------------+------------------------------------------------
Reporter: alexkoshelev | Owner: nobody
Status: new | Milestone: post-1.0
Component: Serialization | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 1 |
---------------------------+------------------------------------------------
Just now python serializer in `handle_field` simple call `getattr` to
retrieve field value form the object:
{{{
smart_unicode(getattr(obj, field.name), strings_only=True)
}}}
And base Serializer has method `get_string_value` that calls appropriate
`value_to_string` field method but derived serializers doesn't call it at
all.
It causes problem than model has non-string field that cannot simply be
converted to string.
--
Ticket URL: <http://code.djangoproject.com/ticket/9522>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---