You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes circular imports are a sign of poor structuring, but other times they're unavoidable because Python's module system can't match the complexity of all DB relationships.
The best solution seems to be something similar to Django ORM's "lazy relationships", where you can pass the model as a string instead of the actual model object itself.
Sometimes circular imports are a sign of poor structuring, but other times they're unavoidable because Python's module system can't match the complexity of all DB relationships.
The best solution seems to be something similar to Django ORM's "lazy relationships", where you can pass the model as a string instead of the actual model object itself.
https://docs.djangoproject.com/en/2.0/ref/models/fields/#django.db.models.ForeignKey
The text was updated successfully, but these errors were encountered: