Re: Why use CustomUserManager.create_user and not CustomUserManager.create?

2019-03-19 Thread Vinicius Assef
Also, there's the create_superuser() method. On Fri, 15 Mar 2019 at 01:48, Peter of the Norse wrote: > The biggest difference is that when you call create_user, it creates a > hash of the password. Eventually, create_user does call create, but only > after setting all the values properly. > >

Re: Why use CustomUserManager.create_user and not CustomUserManager.create?

2019-03-14 Thread Peter of the Norse
The biggest difference is that when you call create_user, it creates a hash of the password. Eventually, create_user does call create, but only after setting all the values properly. Sent from my iPad > On Feb 17, 2019, at 4:30 AM, Maarten Nieber wrote: > > Hi, > > the Django guidelines

Re: Why use CustomUserManager.create_user and not CustomUserManager.create?

2019-02-18 Thread Đảng Nguyễn Văn
Vào 1:05, Th 2, 18 thg 2, 2019 Maarten Nieber Hi, > > the Django guidelines tell us to implement CustomUserManager.create_user. > However, this seems to introduce some ambiguity between > CustomUserManager.create_user and CustomUserManager.create, since both > these methods can be expected to

Why use CustomUserManager.create_user and not CustomUserManager.create?

2019-02-17 Thread Maarten Nieber
Hi, the Django guidelines tell us to implement CustomUserManager.create_user. However, this seems to introduce some ambiguity between CustomUserManager.create_user and CustomUserManager.create, since both these methods can be expected to create a User. In fact, it would be easy to