If what you're trying to do is have two types of user accounts, then you'd
have to create a base user model and have personal and business inherit
from it - and it being a subclass of AbstractBaseUser
class BaseAccount(AbstractBaseUser):
…
# all public fields
class PersonalAccount(BaseAccount):
…
# personal account only fields
class BusinessAccount(BaseAccount):
...
# business account only fields
# settings.py
AUTH_USER_MODEL = 'app_name.BaseAccount'
you should avoid use of the BaseAccount directly
On Jun 29, 2021 6:05 PM, "Ridwan Adeyemo" <[email protected]>
wrote:
Hello,
How do I implement a multiple users registration/signup form. For example
the user needs to have (username, name password, and confirm password )
while the seller is going to have (Business Name, Business Email, address,
tax id, phone number and password, and confirm password)
Best Regards.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/30ae9b3c-6b0d-42eb-9804-92a2fb29b26bn%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/30ae9b3c-6b0d-42eb-9804-92a2fb29b26bn%40googlegroups.com?utm_medium=email&utm_source=footer>
.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAJ4Kmg4TWcEMptdOinqjyqhu%2B-tiVQdwXCg2_9N5%3DG0z_%3DRgvg%40mail.gmail.com.