Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#246 closed defect (duplicate)

Can't do circular ForeignKey relationships between classes

Reported by: matt@… Owned by: adrian
Component: Metasystem Version:
Severity: minor Keywords: model circular foreign key
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Example case:

  • class Person belongs to a Company: ForeignKey(Company)
  • class Company designates a contact Person: ForeignKey(Person)

However, each class requires the other to be defined first. How does one implement this?

Change History (1)

comment:1 Changed 10 years ago by adrian

  • Resolution set to duplicate
  • Status changed from new to closed

This is a duplicate of #167.

Note: See TracTickets for help on using tickets.
Back to Top