> I have a "Category" and "Theme" table. Each category can have a number > of themes, and while a theme with the same name can belong to > different categories, more than one theme with the same name shouldn't > belong to the same category. I'm having a hard time figuring out how > to set this up with Django
Sounds like you want unique_together : http://www.djangoproject.com/documentation/model-api/#unique-together I haven't used it myself. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---