On Sep 16, 11:34 am, TKa <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> This might be a trivial question but I'm a rather new Django user and
> I couldn't find an answer in the documentation.
>
> Setting unique restriction to one field of the model was an easy task,
> but how can I give a model a restriction that a combination of two or
> more fields should be unique thorough the table? Thanks for advanced
> for your help.
>
> TKa


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

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

Reply via email to