Re: to_field can not use primary key of related object.

2012-08-23 Thread Jani Tiainen
23.8.2012 9:30, yillkid kirjoitti: HI all. I write a model: class UserGroup(models.Model): groups = models.ForeignKey(Group, to_field='id') and when I into admin backend:

to_field can not use primary key of related object.

2012-08-23 Thread yillkid
HI all. I write a model: class UserGroup(models.Model): groups = models.ForeignKey(Group, to_field='id') and when I into admin backend: According to the Django document the