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