django-inspectional-registration
django-inspectional-registration copied to clipboard
How can I bypass the admin accepting/rejecting step in the user registration process?
I am developing an application where an admin invites a user. The user opens the same registration page provided by this package. When he registers, I don't want the admin to accept/reject his request and don't want to send the verification email (since admin is requesting him to sign up). How can I avoid these three steps from the 5-step process provided by this application?
I greatly appreciate your help. Thanks.
Hum... If you don't need the inspection steps, why don't you use django-registration with BASIC auth on the registration page or so on? I don't really get your situation...
In my application there are two scenarios-
- User registers himself - here I need 5 step registration.
- Admin invites user to register - here I need 2 step registration. I don't want the admin to accept/reject again since the admin himself sent the invitation.
Therefore, for 1, I need a 5 step process. However, for 2, I need a 2 step process.
Hum...the library wasn't built for that kind of usage thus you need to implement your own code to do that. this library send a signal like https://django-inspectional-registration.readthedocs.org/en/latest/faq.html#i-want-to-use-django-inspectional-registration-but-i-don-t-need-inspection-step so you may allow to do what you want with that signal i gusee. anyway, there is no simple solution for that.
you prob. need to inherit the default backend to custamize the behaviour while default one is just for a simple 5 step registration. i'm sure that you can get what you want with using your own backend but it is a bit complicated (there is no document thvs you need to read the source code to get how to create a custom backend)
I've done something similar, basically create a new class that inherits from the default backend and override whatever methods your need to implement the functionality that you need.