I have splitted two models in two files :
website.py
class WebSite(models.Model):
...
maintenance_page = ForeignKey(Page)
page.py
class Page(models.Model):
...
website = ForeignKey(WebSite)
Of course I have a problem with the loop import.
What could I do ?
The simple thing is to combine the two classes in the same file but I cannot do that.
What else ?
1 Answer