Django request.user becomes anonymous after changing page. Using custom user model

Published: 25/09/2018
Django request.user becomes anonymous after changing page. Using custom user model
Source: STACKOVERFLOW.COM

I'm using a custom user model that extends AbstractBaseUser . This is the user model: class cUser(AbstractBaseUser): def save(self, *args, **kwargs): pass role_id = models.IntegerField() user_id = models.IntegerField() email = models.CharField(max_length=40) password = models.CharField(max_length=40) f_name = models.CharField(max_length=40) l_name = models.CharField(max_length=40) address_id = mo

Read more
Related news
Comment
FACEBOOK