#17122: Admin inlines and forms do not support custom model fields that store
non-
unicode data in the database to be the primary key referenced by relation
fields.
-----------------------------+--------------------
Reporter: nickname123 | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
Admin inlines and forms do not support custom model fields that store non-
unicode data in the database to be the primary key referenced by relation
fields because they call force_unicode() on raw database data when
rendering widgets and determining if data has changed.
A simple solution is to call the custom field's to_python method where
this occurs because to_python supports the raw database data and will
return an object that supports unicode transformation.
--
Ticket URL: <https://code.djangoproject.com/ticket/17122>
Django <https://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.