title: Django ImportError: cannot import name 'ReporterProfile' from partially initialized module 'accounts.models' (most likely due to a circular import)
body: <p>I have two apps: <code>collection</code> and <code>accounts</code>, with both having models defined. I'm importing a model <code>ReporterProfile</code> from <code>accounts</code> to <code>collection</code>. Similarly, I'm importing a model <code>Report</code> from <code>collection</code> to <code>accounts</code>.</p>
  <p>The <code>Report</code> model from <code>collection</code> is called in a model class method in <code>accounts</code> like this:</p>
  <pre><code>from collection.models import Report
  
  class ReporterProfile(models.Model):
      ....
      
      def published_articles_number(self):
          num = Report.objects.filter(reporterprofile=self.id).count()
          return num
  </code></pre>
  <p>Similarly, I am importing <code>ReporterProfile</code> and <code>User</code> models from <code>accounts</code> to <code>collection</code> model like this:</p>
  <pre><code>from accounts.models import ReporterProfile, User
  from &lt;project_name&gt; import settings
  
  class Report(models.Model):
      reporterprofile = models.ForeignKey(ReporterProfile, on_delete=models.CASCADE, verbose_name=&quot;Report Author&quot;)
      ...
  
  class Comment(models.Model):
      report = models.ForeignKey(Report, on_delete=models.CASCADE, related_name='comments')
      user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, verbose_name=&quot;Comment by&quot;)
      ...
  </code></pre>
  <p>When running the server or makemigrations, I get the error:</p>
  <pre><code>File &quot;F:\project_name\accounts\models.py&quot;, line 8, in &lt;module&gt;
      from collection.models import Report
  
  File &quot;F:\project_name\collection\models.py&quot;, line 2, in &lt;module&gt;
      from accounts.models import ReporterProfile, User
  
  ImportError: cannot import name 'ReporterProfile' from partially initialized module 'accounts.models' (most likely due to a circular import) (F:\project_name\accounts\models.py)
  </code></pre>
  <p>I think the error is coming because of a wrong importing pattern. What should I do?</p>