Manager isn’t available; ‘auth.User’ has been swapped for ‘accounts.User’

This is my first time customizing User, the app is working ok, I can edit user fields, sign up, sign in, visit the dashboard. However, when I want to visit another user I’m getting this error:

AttributeError at /account/dashboard/10/

Any help on how to resolve this is more than welcome, thank you!


path('account/dashboard/', dashboard, name = 'dashboard'),
path('account/dashboard/<pk>/', guest_dashboard, name = 'guest_user'),


#Guest Dashboard

def guest_dashboard(request, pk):
    user_other = User.objects.get(pk = pk)
    already_followed = Follow.objects.filter(follower = request.user, following = user_other)
    if guest_dashboard == request.user:
        return HttpResponseRedirect(reverse('dashboard'))
    return render(request, 'account/dashboard-guest.html', context = {'user_other' : user_other, 'already_followed' : already_followed})


AUTH_USER_MODEL = "accounts.User"


class MyUserManager(BaseUserManager):
    def _create_user(self, email, password, **extra_fields):
        if not email:
            raise ValueError('The email must be set')

        email = self.normalize_email(email)
        user = self.model(email=email, **extra_fields)
        return user

    def create_superuser(self, email, password, **extra_fields):
        extra_fields.setdefault('is_staff', True)
        extra_fields.setdefault('is_superuser', True)
        extra_fields.setdefault('is_active', True)

        if extra_fields.get('is_staff') is not True:
            raise ValueError('Superuser Must have is_staff = True')
        if extra_fields.get('is_superuser') is not True:
            raise ValueError('Superuser Must have is_superuser = True')
        return self._create_user(email, password, **extra_fields)

class User(AbstractBaseUser, PermissionsMixin):
    email = models.EmailField(unique=True, null = False)
    username = models.CharField(max_length=264, null = True, blank = True)
    is_staff = models.BooleanField(ugettext_lazy('Staff'), default = False, help_text = ugettext_lazy('Designates whenever the user can log in in the site'))
    is_active = models.BooleanField(ugettext_lazy('Active'), default = True, help_text = ugettext_lazy('Designates whenever the user should be treated as active'))

    USERNAME_FIELD = 'email'
    objects = MyUserManager()

    def __str__(self):

    def get_full_name(self):

    def get_short_name(self):

# Create your models here.
class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile')
    full_name = models.CharField(max_length=264,null = True,  blank = True)
    username = models.CharField(max_length=264, null = True, blank = True)

    def __str__(self):
        return str(self.user.username)

    def is_fully_filled(self):
        fields_name = ( for f in self._meta.get_fields())

        for field_name in fields_name:
            value = getattr(self, field_name)
            if value is None or value == '':
                return False
        return True