﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23335	Related fields pointing to custom fields that store different values in the database than the python representation do not remember selections	thenewguy	nobody	"I have uploaded a demonstration to github here: https://github.com/thenewguy/django_custom_primary_key_related_field_incompatibility  Concisely, forms do not preserve related field selections on these custom fields.

If you have a custom field that returns a custom object from the database that is different from the value returned from to_python, related fields that point to forget the current selection when they are rendered by forms.

I encountered this attempting to use a custom field that maps signed integers to fixed length string representation of unsigned integers for use as identifiers."	Bug	closed	Forms	1.7-rc-2	Normal	fixed			Unreviewed	0	0	0	0	0	0
