In this:
class Administrator(models.Model): user = models.OneToOneField(User, primary_key=True) account = models.ForeignKey(Account) class Meta:
It would be
unique_together = (('account', 'user__username'),)
if I understand what you're trying to do. Note the double underscore. That's how you look at a foreign key's object's properties.