can you check this , I hope it's helpful
https://stackoverflow.com/questions/28691771/django-foreignkey-to-abstractbaseuser
Le jeudi 21 mai 2020 13:11:50 UTC+1, 박지훈 a écrit :
>
> class User(AbstractBaseUser):
>password = models.CharField(max_length=128)
>username =
can you check this , I hope it's helpful
https://stackoverflow.com/questions/28691771/django-foreignkey-to-abstractbaseuser
Le jeu. 21 mai 2020 à 13:11, 박지훈 a écrit :
> class User(AbstractBaseUser):
>password = models.CharField(max_length=128)
>username = models.CharField(unique=True,
You Can Try this one
user = models.ForeignKey(User, on_delete=models.CASCADE)
On Thu, May 21, 2020 at 5:41 PM 박지훈 wrote:
> class User(AbstractBaseUser):
>password = models.CharField(max_length=128)
>username = models.CharField(unique=True, max_length=150)
>is_superuser =
class User(AbstractBaseUser):
password = models.CharField(max_length=128)
username = models.CharField(unique=True, max_length=150)
is_superuser = models.IntegerField()
last_name = models.CharField(max_length=150)
phone = models.CharField(max_length=20)
email =
4 matches
Mail list logo