Views#

These are the Django Class-based views used to implement HTML pages enabled from application urls.py.

class request_form.views.RequestFormView(**kwargs)[source]#

The Request form view.

When a request submit succeed, response is a redirection to RequestSuccessView.

template_name = 'request_form/request/form.html'#
model#

alias of RequestModel

form_class#

alias of RequestForm

success_url#
form_valid(form)[source]#

If the form is valid, redirect to the supplied URL.

post(request, *args, **kwargs)[source]#

Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.

class request_form.views.RequestSuccessView(**kwargs)[source]#

Basic template view to respond to form submit success.

template_name = 'request_form/request/form_success.html'#