﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22520	CircularDependencyError when there's a foreign key to a model with PermissionsMixin	no	nobody	"I have the following models in my project. Running makemigration works, but running migrate causes a CircularDependencyError.

{{{
#!python

from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
from django.db import models

class Employee(AbstractBaseUser, PermissionsMixin):
	USERNAME_FIELD = 'id'

class ModelA(models.Model):
	person = models.ForeignKey(Employee, blank = True, null = True, default = None)

}}}

I think this could be related to #22485 and/or #21968 but I'm not sure.
Test project attached."	Uncategorized	closed	Migrations	1.7-beta-2	Normal	duplicate			Unreviewed	0	0	0	0	0	0
