class Answer(meta.Model):
        user = meta.ForeignKey(User)
        question = meta.ForeignKey(Question)
        choice = meta.ForeignKey(Choice)

I just did a double take on my model and realized a composite key would
be more ideal here as I wouldnt want a user answering the same question
twice ...
but I can't find a way of grouping them together into a composite key -
is this possible (or even desirable, looking at some of the previous
posts)?

I'd prefer a database-level rather than an application-level solution
if one exists..

>> unique_together = (("driver", "restaurant"),)

... and I don't think this is a db-level solution ..

Any help would be appreciated 


Alice

Reply via email to