Skip to content

Commit ee17e22

Browse files
committed
Remove unique=True from UserMap's user field, because of
http://code.djangoproject.com/ticket/565 - Legacy-Id: 921
1 parent ac4eb08 commit ee17e22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/ietfauth/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class UserMap(models.Model):
1111
have multiple accounts with multiple privilege levels: they
1212
need extra IETF users.
1313
"""
14-
user = models.ForeignKey(User, raw_id_admin=True, core=True, unique=True)
14+
user = models.ForeignKey(User, raw_id_admin=True, core=True)
15+
# user should have unique=True, but that confuses the
16+
# admin edit_inline interface.
1517
person = models.ForeignKey(PersonOrOrgInfo, edit_inline=models.STACKED, max_num_in_admin=1, unique=True)
1618
def __str__(self):
1719
return "Mapping django user %s to IETF person %s" % ( self.user, self.person )

0 commit comments

Comments
 (0)