accounts.views   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A AccountCreateView.form_valid() 0 3 1
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