Extended Django base-class with multiple instances
- by Gijs
I'm modeling a simple movie database using Django.
models.py defines a base model Person. I extend Person into Actor and Director, which works as I imagined. Persons must be unique.
When (in the Admin) I create an instance of Actor, and this person is also a Director, it won't save because of the unique = True. Any ideas how to solve this problem? (generic foreign keys?)
Thx