I have a multi-level database that uses concatenated foreign keys as 
primary keys for tables. 

For example we have three tables
VMS
VM_LICENSE
LICENSES


VMS has
name 
license_id <- foreign key
vm_id <-primary key


vm_licenses has two concatenated fkeys to for a primary key of:
licenses_id fkey to licenses
vm_id   fkey to vms


licenses has:

license_id pkey
product_code


how do I deal with concatenated foreign keys to form a primary key how do i 
even register that in the models.py? 
The reason I ask is because one i need to register them and the second is 
how do i save forms based on a concatinated pk

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2c2754db-4252-4e38-a99f-f518da50d555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to