[Answered ]-Django user images – how to get around this circular dependency?

2👍

Comment out the Lessor.portrait foreign key, and create migrations for both models.

Once the Image model has been created, you can uncomment the field, and create a another migration to add the foreign key.

Leave a comment