Opened 19 years ago

Closed 19 years ago

Last modified 18 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

Description

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

Resolution: duplicate
Status: newclosed

This is a duplicate of #167.

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