On Sun, Dec 27, 2009 at 11:08 PM, Marc Aymerich <glicer...@gmail.com> wrote:

> hi guys!
>
> I'm writing my first project with django and I have doubts in how to
> declare a constraint unique for two fields of the same table using
> models.Model.
>

See:

http://docs.djangoproject.com/en/1.1/ref/models/options/#unique-together

which is a Meta option:

http://docs.djangoproject.com/en/1.1/topics/db/models/#meta-options

Karen

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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