Opened 23 months ago

Last modified 21 months ago

#23268 new Bug

Fixtures: Natural Key support for Generic Foreign Keys

Reported by: eskhool Owned by: nobody
Component: Core (Serialization) Version: 1.6
Severity: Normal Keywords: natural generic fixtures
Cc: dev@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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.

Creating a ticket to document it here and see what the interest is for the same.

Change History (2)

comment:1 Changed 22 months ago by brillgen

  • Cc dev@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 21 months ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted
Note: See TracTickets for help on using tickets.
Back to Top