Django – Circular model import issue November 14, 2022 by Tarik Remove the import of Theme and use the model name as a string instead. theme = models.ForeignKey('themes.Theme')