Hey.
I am working project where I need it. Five different roles, but users can 
have Multiple roles. Here is link to my git 
repo https://github.com/noobExtendsBot/django-custom-user form out side it 
in not documented enough (actually haven't commit on github) but you have a 
look inside models it is explained well. Note: I am using 'accounts' app to 
manage my users as user will need mobile number to login. You may want to 
have a look at model.py in account app. Here is the link 
https://github.com/noobExtendsBot/django-custom-user/blob/master/src/accounts/models.py

Please let me know if you need any help.


On Wednesday, 23 October 2019 07:08:29 UTC+5:30, Stephanie Semerville wrote:
>
> I am new to Django and trying to create a website that has two user roles 
> primary and member. What i would like to happen is for by default a primary 
> user to sign up and be assigned the primary role. When that primary user 
> logs into the website, I would like them to have the ability to invite new 
> users to the website. When that new user receives the invitation email and 
> is redirected to the same sign up form, I would like that user to be auto 
> assigned the member role on form submit. I have heard about the save() 
> method but not sure how to use it and what file it goes in. Would the 
> process change if all users can potentially be both roles?
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8052585f-7ae8-4cff-b6e9-17b75bbec989%40googlegroups.com.

Reply via email to