Hi,

I'm designing a database where I have a situation similar to this...

table1
field1(primary key), field2 .....

table 2
field1(primary key), field2, ....

table 3
field1 (foreign key to field1 of table1), field2 (foreign key to
field1 of table 2)

and I want to create a primary key that is composed of field1 and
field 2 in table 3, is this possible in django? Can I do something
like...

field1 = ForeignKey('table1', primarykey=True)
field2= ForeignKey('table2', primarykey=True)

Thanks,
Francesco


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