Thanks again, Karen - you rock! Does it automagically do this, or do I need to enter a rule (in views, perhaps) to check it during validation? I mean, I now have "if form.is_valid" (though I don't recall if I had that originally).
On Sat, Sep 26, 2009 at 10:26 AM, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Sep 26, 2009 at 10:09 AM, Robb Bossley <robb.boss...@gmail.com>wrote: > >> Karen, >> >> When I had tried previously, it seemed that Django would not ensure that >> the four fields coupled together would be unique - I believe I tried it - >> and that is why I switched things around. >> >> > How are you adding entries? The unique_together checks are done during > form validation, so you need to be using a form to add entries. > > Karen > > > > -- "Because of the Lord's great love we are not consumed, for his compassions never fail. They are new every morning; great is your faithfulness." Lamentations 3:22 --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---