You meant another table that designed specifically to link those fields? This come to mind:

  class CompanyAccount(meta.Model):
     company = meta.ForeignKey(enterprise.Company)
     account = meta.ForeignKey(accounting.Account)


or better, a OneToOneField since a company's main account is singular, I have never tried this:

  class CompanyAccount(meta.Model):
     company = meta.OneToOneField(enterprise.Company)
     account = meta.ForeignKey(accounting.Account)

Thanks!


oggie rob wrote:

Perhaps another solution is each linking to a separate (common) table?
That avoids referencing issues.

Reply via email to