Skip to content

Commit

Permalink
ProfileBase.user cannot be unique with multiple profile that inherit …
Browse files Browse the repository at this point in the history
…from a single concrete base class

This change is specific to the needs of the code testing this branch. Need
to revisit this later.
  • Loading branch information
brosner committed Aug 27, 2010
1 parent 140f478 commit eab7f83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion idios/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class ProfileBase(models.Model):

user = models.ForeignKey(User, unique=True, verbose_name=_("user"))
# @@@ could be unique=True if subclasses don't inherit a concrete base class
# @@@ need to look at this more
user = models.ForeignKey(User, verbose_name=_("user"))

class Meta:
verbose_name = _("profile")
Expand Down

0 comments on commit eab7f83

Please sign in to comment.