DJANGO: cycle imports
to fix cycle imports you should specify ForeignKeys
as strings
flat = models.ForeignKey('Flat')
but if model is placed in other application you should specify it
flat = models.ForeignKey('building.Flat')
to fix cycle imports you should specify ForeignKeys
as strings
flat = models.ForeignKey('Flat')
but if model is placed in other application you should specify it
flat = models.ForeignKey('building.Flat')
Comments
comments powered by Disqus