On Sun, 2008-10-05 at 06:42 -0700, Matrixer wrote:
> hi, when I was trying to use the Meta option 'unique_together' in my
> Membership model below, a NameError happened, I don't know what the
> problem is, I am using django 1.0 and sqlite3
>
> regards,
> Matrixer
>
> -------------------------------------------------------
> class Membership(models.Model):
> person = models.ForeignKey('Person')
> group = models.ForeignKey('Group')
>
> class Meta:
> unique_together('person', 'group')
This would be a function call to a function called unique_together
(which doesn't exist). You've left out an equals (=) character.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---