Fixtures: Natural Key support for Generic Foreign Keys
Currently, the natural key support is incomplete when it comes to generic foreign keys (I say bug, you may think feature). One cannot remove PKs from any object that has a generic foreign key reference limiting the whole idea of having natural keys to direct foreign keys only. Since generic foreign keys can inherently have an entry with any model, PKs have to be dumped for all models necessitating the maintenance of updated PKs
There is a great answer by someone who has done the leg work for figuring out what is required.
http://stackoverflow.com/questions/11159377/is-it-possible-to-use-a-natural-key-for-a-genericforeignkey-in-django
Creating a ticket to document it here and see what the interest is for the same.
Change History
(7)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Guillaume Thomas
|
Status: |
new → assigned
|
Has patch: |
set
|
Triage Stage: |
Accepted → Ready for checkin
|
Triage Stage: |
Ready for checkin → Accepted
|
Patch needs improvement: |
set
|