Understood but what is the snippet o code that specifies the role that i would like to assign to invited user?
On Wednesday, October 23, 2019 at 12:43:44 PM UTC-4, Jani Tiainen wrote: > > Hi. > > Personally I would do it as follows: > > On invitation create invited user account at least with email and with > member role. Make account disabled. You might also add invitation key which > you can put in email and check as well. > > When invited user starts sign up procedure you can just fill in the blanks > and enable account. > > > ke 23. lokak. 2019 klo 4.38 Stephanie Semerville <[email protected] > <javascript:>> kirjoitti: > >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/c80f1b02-d1e8-4a9d-a8ca-80af61260e79%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/c80f1b02-d1e8-4a9d-a8ca-80af61260e79%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/897ae838-be67-45e2-92df-ae2c9b21c0f3%40googlegroups.com.

