Hi folks,

I want to have the following, but I'm not sure on how to do that. This
is the layout of the models:

CustomerData
  - name
  - age
  - etc.

Mortgage
  - Many-to-one key to CustomerData
  - start date
  - end date
  - sum
  - etc.

LifeInsurance
  - Many-to-one key to CustomerData
  - start date
  - end date
  - sum
  - etc.
  
So one CustomerData object can have multiple Mortgage and
LifeInsurance objects.

Now I want to have an extra relation: a LifeInsurance object has to be
linked to a single Mortgage object of the same CustomerData object.

Is this possible with Django? If so, how?

Greetings,
-- 
Sybren Stüvel, B.Sc.
Stüvel IT
http://www.stuvel.eu/

Attachment: signature.asc
Description: Digital signature

Reply via email to