Did you happen to remove the private method "def _create_user" from your
models.py?
Regards,
Amitesh
On Saturday, 9 January, 2021, 08:08:16 pm IST, Vishesh Mangla
wrote:
Oops I guess, my bad messaging style made you miss the last few pieces of my
messages. Thanks, but that problem
Oops I guess, my bad messaging style made you miss the last few pieces of
my messages. Thanks, but that problem is resolved as written in my previous
message with the working code. Now I require help with the Migrations
problem.
On Saturday, January 9, 2021 at 8:00:55 PM UTC+5:30 Amitesh Sahay
Hello Vishesh,
Below is from my models.py:
models.py-from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
from django.utils.translation import gettext_lazy as _
class AccountManager(BaseUserManager):
d
I did paste my `models.py` with the help the help of a dpaste link.
```
class UserManager( BaseUserManager):
def _create_user(self, PAN_ID, password=None, **extra_fields):
"""
Creates and saves a User with the given email, date of
birth and password.
"""
Could you please paste your models.py
Sent from Yahoo Mail on Android
On Sat, 9 Jan 2021 at 18:36, Vishesh Mangla wrote:
https://dpaste.org/Zz5Z
(venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py
createsuperuser
PAN ID: 6785
Email: s@g
Error: Enter a valid email ad
Another thing is that my "employees" group has an additional CharField
requirement. Only the employees group.How can I add specifically a field to
that group? Something this
this:https://stackoverflow.com/questions/16407217/add-extra-fields-to-django-to-django-auth-groups
On Saturday, January 9
Hi, please help me create this UserManager child class. I 'm stuck up on
this. I also need to divide my users into three groups.
For this I extended the migrations file. https://dpaste.org/9VSd. But
running `makemigrations` gives no changes detected.
Please help with this issue too.
Thanks i
https://dpaste.org/Zz5Z
(venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py
createsuperuser
PAN ID: 6785
Email: s@g
Error: Enter a valid email address.
Email: s...@gmail.com
Name: fjghg
Type: fg
Error: Value 'fg' is not a valid choice.
Type: ADM
Holding: 568
Password:
Pass
8 matches
Mail list logo