Пример #1
0
def register(request):
    """User registration page.

    Overrides `registration` app's view to use a custom form.
    """
    form_class = agreement_form_factory(LegalPage.live.all(),
                                        request.user,
                                        base_class=RegistrationForm)
    return original_register(request, form_class=form_class)
Пример #2
0
def register(request):
    """User registration page.

    Overrides `registration` app's view to use a custom form.
    """
    form_class = agreement_form_factory(LegalPage.live.all(),
                                        request.user,
                                        base_class=RegistrationForm)
    return original_register(request, form_class=form_class)
Пример #3
0
def register(request):
    """User registration page.

    Overrides `registration` app's view to use a custom form.
    """
    form_class = agreement_form_factory(LegalPage.objects.live().all(),
                                        request.user,
                                        base_class=RegistrationForm,
                                        anchor_class='js-popup-ajax')
    return original_register(request, form_class=form_class)
Пример #4
0
def register(request,
             success_url=None,
             form_class=RegistrationForm,
             template_name='mozilla_extras/registration_form.html',
             extra_context=None):
    """
    overriding the register view
    (this needs a better doc string /peterbe)
    """
    return original_register(request,
                             form_class=form_class,
                             template_name=template_name,
                             extra_context=extra_context)
Пример #5
0
def register(request, success_url=None,
             form_class=RegistrationForm,
             template_name='mozilla_extras/registration_form.html',
             extra_context=None):
    """
    overriding the register view
    (this needs a better doc string /peterbe)
    """
    return original_register(request,
      form_class=form_class,
      template_name=template_name,
      extra_context=extra_context
    )
Пример #6
0
def register(request):
    """User registration page.

    Overrides `registration` app's view to use a custom form.
    """
    return original_register(request, form_class=RegistrationForm)