Re: How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-22 Thread HJ
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 =

Re: How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-22 Thread hajar Benjat
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,

Re: How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-21 Thread meera gangani
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 =

How to Insert Foreign Key into my user model with Abstractbaseuser

2020-05-21 Thread 박지훈
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 =