I have model in django that has some instaces in itself:
class Account(AbstractBaseUser, PermissionsMixin):
username = models.CharField(max_length=50, unique=True)
#some instances...
is_agent = models.BooleanField(default=False)
agent = models.ForeignKey("self", verbose_name=('agent'), on_delete=models.SET_NULL, blank=True, null=True)
i want to pass only Accounts objects that is_agent set to True in my model.ForeignKey() method. i don't want to use inheritence for some reasons.