#8674: OneToOne Fields display problem in admin gui
-----------------------------+----------------------------------------------
Reporter: nekron | Owner: nobody
Status: new | Milestone: 1.0
Component: Admin interface | Version: SVN
Keywords: OneToOne | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
This bug is for SVN 8696.
I created the following simple !OneToOneField model:
{{{
class Man(models.Model):
name = models.CharField(max_length=10)
def __unicode__(self):
return self.name
class Woman(models.Model):
name = models.CharField(max_length=10)
man = models.OneToOneField(Man)
def __unicode__(self):
return self.name
}}}
e.g., a woman is married to one man.
If I register both models with admin.site.register and start editing them
via administration I can add woman to man 1:1 relations, however if I
start editing my womens objects again I get "--------" instead of my
related man object shown in the select box. Within the database the
OneToOneField data looks ok.
--
Ticket URL: <http://code.djangoproject.com/ticket/8674>
Django Code <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
-~----------~----~----~----~------~----~------~--~---