On Sun, 2009-01-18 at 09:58 -0700, Dj Gilcrease wrote:
> On Sun, Jan 18, 2009 at 4:34 AM, Malcolm Tredinnick
> <malc...@pointy-stick.com> wrote:
> >> Right now, that is only enforced by the admin interface,
> >
> > I should have extended this to also say "and ModelForms", since if you
> > create a ModelForm from a Model, unique and unique_together are
> > respected.
> 
> It's respected for any form of creation on postgrsql as well, not sure
> about MySQL or the others though

Hmm... yes, you're correct. I thought we didn't do anything for
unique_together (which was what the original poster's question was
about), but I'm completely wrong. We do add a UNIQUE(...) constraint to
the database table for any unique_together groups.

Thanks for the correction.

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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to