shuup.front.apps.registration package¶
Submodules¶
shuup.front.apps.registration.forms module¶
-
class
shuup.front.apps.registration.forms.
CompanyForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
CompanyContact
-
fields
= ['name', 'name_ext', 'tax_number', 'email', 'phone', 'www']¶
-
help_texts
= {'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fabc9de0048>, 'email': None, 'phone': None}¶
-
-
CompanyForm.
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fabc9c32358>), ('name_ext', <django.forms.fields.CharField object at 0x7fabc9c32438>), ('tax_number', <django.forms.fields.CharField object at 0x7fabc9c32198>), ('email', <django.forms.fields.EmailField object at 0x7fabc9c32cf8>), ('phone', <django.forms.fields.CharField object at 0x7fabc9c7a7f0>), ('www', <django.forms.fields.URLField object at 0x7fabc9c7ad68>)])¶
-
CompanyForm.
declared_fields
= OrderedDict()¶
-
CompanyForm.
media
¶
-
class
-
class
shuup.front.apps.registration.forms.
ContactPersonForm
(**kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
PersonContact
-
fields
= ['first_name', 'last_name', 'email', 'phone']¶
-
-
ContactPersonForm.
base_fields
= OrderedDict([('first_name', <django.forms.fields.CharField object at 0x7fabc9c329e8>), ('last_name', <django.forms.fields.CharField object at 0x7fabc9c32860>), ('email', <django.forms.fields.EmailField object at 0x7fabc9c32630>), ('phone', <django.forms.fields.CharField object at 0x7fabc9c32320>)])¶
-
ContactPersonForm.
declared_fields
= OrderedDict()¶
-
ContactPersonForm.
media
¶
-
class
shuup.front.apps.registration.notify_events module¶
-
class
shuup.front.apps.registration.notify_events.
RegistrationReceived
(**variable_values)[source]¶ Bases:
shuup.notify.base.Event
-
identifier
= 'registration_received'¶
-
name
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
bindings
= {}¶
-
variables
= {'user_is_active': <shuup.notify.base.Variable object at 0x7fabcf5a5c50>, 'activation_url': <shuup.notify.base.Variable object at 0x7fabcf5a5ba8>, 'customer': <shuup.notify.base.Variable object at 0x7fabcf6a93c8>, 'customer_email': <shuup.notify.base.Variable object at 0x7fabcf6a9860>}¶
-
-
class
shuup.front.apps.registration.notify_events.
CompanyRegistrationReceived
(**variable_values)[source]¶ Bases:
shuup.front.apps.registration.notify_events.RegistrationReceived
-
identifier
= 'company_registration_received'¶
-
name
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
bindings
= {}¶
-
variables
= {'user_is_active': <shuup.notify.base.Variable object at 0x7fabcf5a5c50>, 'activation_url': <shuup.notify.base.Variable object at 0x7fabcf5a5ba8>, 'customer': <shuup.notify.base.Variable object at 0x7fabcf6a93c8>, 'customer_email': <shuup.notify.base.Variable object at 0x7fabcf6a9860>}¶
-
-
class
shuup.front.apps.registration.notify_events.
CompanyApproved
(**variable_values)[source]¶ Bases:
shuup.front.apps.registration.notify_events.RegistrationReceived
-
identifier
= 'company_approved_by_admin'¶
-
name
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
bindings
= {}¶
-
variables
= {'user_is_active': <shuup.notify.base.Variable object at 0x7fabcf5a5c50>, 'activation_url': <shuup.notify.base.Variable object at 0x7fabcf5a5ba8>, 'customer': <shuup.notify.base.Variable object at 0x7fabcf6a93c8>, 'customer_email': <shuup.notify.base.Variable object at 0x7fabcf6a9860>}¶
-
shuup.front.apps.registration.settings module¶
-
shuup.front.apps.registration.settings.
SHUUP_REGISTRATION_REQUIRES_ACTIVATION
= True¶ Require email-based activation for users?
This corresponds to using the
default
orsimple
django-registration
backends.
shuup.front.apps.registration.signals module¶
shuup.front.apps.registration.urls module¶
shuup.front.apps.registration.views module¶
-
class
shuup.front.apps.registration.views.
RegistrationViewMixin
[source]¶ Bases:
object
-
template_name
= 'shuup/registration/register.jinja'¶
-
-
class
shuup.front.apps.registration.views.
RegistrationNoActivationView
(**kwargs)[source]¶ Bases:
shuup.front.apps.registration.views.RegistrationViewMixin
,registration.backends.simple.views.RegistrationView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
class
shuup.front.apps.registration.views.
RegistrationWithActivationView
(**kwargs)[source]¶ Bases:
shuup.front.apps.registration.views.RegistrationViewMixin
,registration.backends.default.views.RegistrationView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
SEND_ACTIVATION_EMAIL
= False¶
-
-
class
shuup.front.apps.registration.views.
RegistrationView
(**kwargs)[source]¶ Bases:
django.views.generic.base.View
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
class
shuup.front.apps.registration.views.
CompanyRegistrationView
(**kwargs)[source]¶ Bases:
shuup.front.apps.registration.views.RegistrationViewMixin
,registration.backends.default.views.RegistrationView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/registration/company_register.jinja'¶
-
form_class
¶ alias of
CompanyRegistrationForm
-
SEND_ACTIVATION_EMAIL
= False¶
-
Module contents¶
Shuup Registration Add-on¶
The shuup.front.apps.registration add-on provides simple user registration and email token based activation.
It is based on the django-registration-redux package.
Installation¶
Add registration
and shuup.front.apps.registration
into your INSTALLED_APPS
(and run migrations, of course).
The application registers its URLs via the front_urls
provides
mechanism.
URL names¶
shuup:registration_register
– the entry point for registration.
-
class
shuup.front.apps.registration.
RegistrationAppConfig
(*args, **kwargs)[source]¶ Bases:
shuup.apps.AppConfig
-
name
= 'shuup.front.apps.registration'¶
-
verbose_name
= 'Shuup Frontend - User Registration'¶
-
label
= 'shuup_front.registration'¶
-
required_installed_apps
= {'registration': 'django-registration-redux is required for user registration and activation'}¶
-
provides
= {'notify_script_template': ['shuup.front.apps.registration.notify_events:RegistrationReceivedEmailScriptTemplate', 'shuup.front.apps.registration.notify_events:CompanyRegistrationReceivedEmailScriptTemplate', 'shuup.front.apps.registration.notify_events:CompanyActivatedEmailScriptTemplate'], 'notify_event': ['shuup.front.apps.registration.notify_events:RegistrationReceived', 'shuup.front.apps.registration.notify_events:CompanyRegistrationReceived', 'shuup.front.apps.registration.notify_events:CompanyApproved'], 'front_urls': ['shuup.front.apps.registration.urls:urlpatterns']}¶
-