Remove unique=True from UserMap's user field, because of

http://code.djangoproject.com/ticket/565
 - Legacy-Id: 921
This commit is contained in:
Bill Fenner 2007-09-05 11:58:48 +00:00
parent ac4eb08976
commit ee17e225c1

View file

@ -11,7 +11,9 @@ class UserMap(models.Model):
have multiple accounts with multiple privilege levels: they
need extra IETF users.
"""
user = models.ForeignKey(User, raw_id_admin=True, core=True, unique=True)
user = models.ForeignKey(User, raw_id_admin=True, core=True)
# user should have unique=True, but that confuses the
# admin edit_inline interface.
person = models.ForeignKey(PersonOrOrgInfo, edit_inline=models.STACKED, max_num_in_admin=1, unique=True)
def __str__(self):
return "Mapping django user %s to IETF person %s" % ( self.user, self.person )