You can use the meta variable unique_together.
This will do something like this, however, does not work for existing
datamodels.



On Apr 7, 9:06 am, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Tue, Apr 7, 2009 at 11:53 AM, sandravigo <sandra8...@gmail.com> wrote:
>
> > Hello, I want to know how I can to declarate multiple primary key in
> > my model
>
> Django doens't support multiple column primary keys.  This is the subject of
> ticket #373 in Django's trac.
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~---------~--~----~------------~-------~--~----~
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