Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#246 closed defect (duplicate)

Can't do circular ForeignKey relationships between classes

Reported by: matt@… Owned by: Adrian Holovaty
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: no UI/UX: no


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 13 years ago by Adrian Holovaty

Resolution: duplicate
Status: newclosed

This is a duplicate of #167.

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