Completed
Push — master ( 3262a6...1cd89d )
by Mathias
40s
created

UacRegListView   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 0
c 1
b 0
f 1
dl 0
loc 2
rs 10
1
from django.views.generic import DetailView, ListView, UpdateView, CreateView
2
from .models import UacReg, Trusted
3
from .forms import UacRegForm, TrustedForm
4
5
6
class UacRegListView(ListView):
7
    model = UacReg
8
9
10
class UacRegCreateView(CreateView):
11
    model = UacReg
12
    form_class = UacRegForm
13
14
15
class UacRegDetailView(DetailView):
16
    model = UacReg
17
18
19
class UacRegUpdateView(UpdateView):
20
    model = UacReg
21
    form_class = UacRegForm
22
23
24
class TrustedListView(ListView):
25
    model = Trusted
26
27
28
class TrustedCreateView(CreateView):
29
    model = Trusted
30
    form_class = TrustedForm
31
32
33
class TrustedDetailView(DetailView):
34
    model = Trusted
35
36
37
class TrustedUpdateView(UpdateView):
38
    model = Trusted
39
    form_class = TrustedForm
40
41