Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from django.shortcuts import render |
||
2 | from django.views.generic.edit import FormView |
||
3 | from django.contrib.auth.forms import UserCreationForm |
||
4 | |||
5 | |||
6 | class AccountCreateView(FormView): |
||
7 | template_name = 'accounts_create_form.html' |
||
8 | form_class = UserCreationForm |
||
9 | success_url = '/accounts/confirm/' |
||
10 | |||
11 | def form_valid(self, form): |
||
12 | form.save() |
||
13 | return super(AccountCreateView, self).form_valid(form) |
||
14 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.