title: ImportError: cannot import name from partially initialized module Django
body: <p>I'm facing an issue which I don't know why the error occurs, please help me to resolve this error:</p>
  <p>error:</p>
  <pre><code>ImportError: cannot import name 'User' from partially initialized module 
  'authentication.models' (most likely due to a circular import) 
  (/app/authentication/models.py)
  </code></pre>
  <p>User model:</p>
  <pre><code>from projects.models import Organization
  
  class User(AbstractBaseUser, PermissionsMixin):
     organization = models.ForeignKey(Organization, on_delete=models.CASCADE, null=True)
  </code></pre>
  <p>the error occurs after this ^ import</p>
  <p>Project models:</p>
  <pre><code>from django.db import models
  from authentication.models import User
  
  
  class Organization(models.Model):
      OWNER = 1
      CONTRACTOR = 2
      DISTRIBUTOR = 3
      MANUFACTURER = 4
      CONSULTANT = 5
  
      ORG_TYPES = [
          (OWNER, 'Owner'),
          (CONTRACTOR, 'Contractor'),
          (DISTRIBUTOR, 'Distributor'),
          (MANUFACTURER, 'Manufacturer'),
          (CONSULTANT, 'Consultant'),
      ]
      name = models.CharField(max_length=255, default='')
      created_at = models.DateTimeField(auto_now=True, null=True)
      updated_at = models.DateTimeField(auto_now=True, null=True)
      is_active = models.IntegerField(default=1, null=True)
      created_by = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
      org_type = models.CharField(max_length=1, choices=ORG_TYPES)
      class Meta:
          db_table = 'organizations'
  
  
  class Project(models.Model):
      name = models.CharField(max_length=255, default='')
      description = models.CharField(max_length=255, default='')
      created_at = models.DateTimeField(auto_now=True, null=True)
      updated_at = models.DateTimeField(auto_now=True, null=True)
      is_active = models.IntegerField(default=1, null=True)
      created_by = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
      account = models.ManyToManyField(User, related_name='account')
      contractor = models.ForeignKey(Organization, related_name=&quot;contractor&quot;, on_delete=models.CASCADE)
      distributor = models.ForeignKey(Organization, related_name=&quot;distributor&quot;, on_delete=models.CASCADE)
      manufacturer = models.ForeignKey(Organization, related_name=&quot;manufacturer&quot;, on_delete=models.CASCADE)
      consultant = models.ForeignKey(Organization, related_name=&quot;consultant&quot;, on_delete=models.CASCADE)
      owner = models.ForeignKey(Organization, related_name=&quot;owner&quot;, on_delete=models.CASCADE)
  
      class Meta:
          db_table = 'projects'
  </code></pre>