1
|
|
|
from django.views.generic import DetailView, ListView, UpdateView, CreateView |
2
|
|
|
from .models import Version, Location, LocationAttrs, UserBlackList, GlobalBlackList, SpeedDial, PipeLimit, Mtree, Mtrees, Htable |
3
|
|
|
from .forms import VersionForm, LocationForm, LocationAttrsForm, UserBlackListForm, GlobalBlackListForm, SpeedDialForm, PipeLimitForm, MtreeForm, MtreesForm, HtableForm |
4
|
|
|
|
5
|
|
|
|
6
|
|
|
class VersionListView(ListView): |
7
|
|
|
model = Version |
8
|
|
|
|
9
|
|
|
|
10
|
|
|
class VersionCreateView(CreateView): |
11
|
|
|
model = Version |
12
|
|
|
form_class = VersionForm |
13
|
|
|
|
14
|
|
|
|
15
|
|
|
class VersionDetailView(DetailView): |
16
|
|
|
model = Version |
17
|
|
|
|
18
|
|
|
|
19
|
|
|
class VersionUpdateView(UpdateView): |
20
|
|
|
model = Version |
21
|
|
|
form_class = VersionForm |
22
|
|
|
|
23
|
|
|
|
24
|
|
|
class LocationListView(ListView): |
25
|
|
|
model = Location |
26
|
|
|
|
27
|
|
|
|
28
|
|
|
class LocationCreateView(CreateView): |
29
|
|
|
model = Location |
30
|
|
|
form_class = LocationForm |
31
|
|
|
|
32
|
|
|
|
33
|
|
|
class LocationDetailView(DetailView): |
34
|
|
|
model = Location |
35
|
|
|
|
36
|
|
|
|
37
|
|
|
class LocationUpdateView(UpdateView): |
38
|
|
|
model = Location |
39
|
|
|
form_class = LocationForm |
40
|
|
|
|
41
|
|
|
|
42
|
|
|
class LocationAttrsListView(ListView): |
43
|
|
|
model = LocationAttrs |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
class LocationAttrsCreateView(CreateView): |
47
|
|
|
model = LocationAttrs |
48
|
|
|
form_class = LocationAttrsForm |
49
|
|
|
|
50
|
|
|
|
51
|
|
|
class LocationAttrsDetailView(DetailView): |
52
|
|
|
model = LocationAttrs |
53
|
|
|
|
54
|
|
|
|
55
|
|
|
class LocationAttrsUpdateView(UpdateView): |
56
|
|
|
model = LocationAttrs |
57
|
|
|
form_class = LocationAttrsForm |
58
|
|
|
|
59
|
|
|
|
60
|
|
|
class UserBlackListListView(ListView): |
61
|
|
|
model = UserBlackList |
62
|
|
|
|
63
|
|
|
|
64
|
|
|
class UserBlackListCreateView(CreateView): |
65
|
|
|
model = UserBlackList |
66
|
|
|
form_class = UserBlackListForm |
67
|
|
|
|
68
|
|
|
|
69
|
|
|
class UserBlackListDetailView(DetailView): |
70
|
|
|
model = UserBlackList |
71
|
|
|
|
72
|
|
|
|
73
|
|
|
class UserBlackListUpdateView(UpdateView): |
74
|
|
|
model = UserBlackList |
75
|
|
|
form_class = UserBlackListForm |
76
|
|
|
|
77
|
|
|
|
78
|
|
|
class GlobalBlackListListView(ListView): |
79
|
|
|
model = GlobalBlackList |
80
|
|
|
|
81
|
|
|
|
82
|
|
|
class GlobalBlackListCreateView(CreateView): |
83
|
|
|
model = GlobalBlackList |
84
|
|
|
form_class = GlobalBlackListForm |
85
|
|
|
|
86
|
|
|
|
87
|
|
|
class GlobalBlackListDetailView(DetailView): |
88
|
|
|
model = GlobalBlackList |
89
|
|
|
|
90
|
|
|
|
91
|
|
|
class GlobalBlackListUpdateView(UpdateView): |
92
|
|
|
model = GlobalBlackList |
93
|
|
|
form_class = GlobalBlackListForm |
94
|
|
|
|
95
|
|
|
|
96
|
|
|
class SpeedDialListView(ListView): |
97
|
|
|
model = SpeedDial |
98
|
|
|
|
99
|
|
|
|
100
|
|
|
class SpeedDialCreateView(CreateView): |
101
|
|
|
model = SpeedDial |
102
|
|
|
form_class = SpeedDialForm |
103
|
|
|
|
104
|
|
|
|
105
|
|
|
class SpeedDialDetailView(DetailView): |
106
|
|
|
model = SpeedDial |
107
|
|
|
|
108
|
|
|
|
109
|
|
|
class SpeedDialUpdateView(UpdateView): |
110
|
|
|
model = SpeedDial |
111
|
|
|
form_class = SpeedDialForm |
112
|
|
|
|
113
|
|
|
|
114
|
|
|
class PipeLimitListView(ListView): |
115
|
|
|
model = PipeLimit |
116
|
|
|
|
117
|
|
|
|
118
|
|
|
class PipeLimitCreateView(CreateView): |
119
|
|
|
model = PipeLimit |
120
|
|
|
form_class = PipeLimitForm |
121
|
|
|
|
122
|
|
|
|
123
|
|
|
class PipeLimitDetailView(DetailView): |
124
|
|
|
model = PipeLimit |
125
|
|
|
|
126
|
|
|
|
127
|
|
|
class PipeLimitUpdateView(UpdateView): |
128
|
|
|
model = PipeLimit |
129
|
|
|
form_class = PipeLimitForm |
130
|
|
|
|
131
|
|
|
|
132
|
|
|
class MtreeListView(ListView): |
133
|
|
|
model = Mtree |
134
|
|
|
|
135
|
|
|
|
136
|
|
|
class MtreeCreateView(CreateView): |
137
|
|
|
model = Mtree |
138
|
|
|
form_class = MtreeForm |
139
|
|
|
|
140
|
|
|
|
141
|
|
|
class MtreeDetailView(DetailView): |
142
|
|
|
model = Mtree |
143
|
|
|
|
144
|
|
|
|
145
|
|
|
class MtreeUpdateView(UpdateView): |
146
|
|
|
model = Mtree |
147
|
|
|
form_class = MtreeForm |
148
|
|
|
|
149
|
|
|
|
150
|
|
|
class MtreesListView(ListView): |
151
|
|
|
model = Mtrees |
152
|
|
|
|
153
|
|
|
|
154
|
|
|
class MtreesCreateView(CreateView): |
155
|
|
|
model = Mtrees |
156
|
|
|
form_class = MtreesForm |
157
|
|
|
|
158
|
|
|
|
159
|
|
|
class MtreesDetailView(DetailView): |
160
|
|
|
model = Mtrees |
161
|
|
|
|
162
|
|
|
|
163
|
|
|
class MtreesUpdateView(UpdateView): |
164
|
|
|
model = Mtrees |
165
|
|
|
form_class = MtreesForm |
166
|
|
|
|
167
|
|
|
|
168
|
|
|
class HtableListView(ListView): |
169
|
|
|
model = Htable |
170
|
|
|
|
171
|
|
|
|
172
|
|
|
class HtableCreateView(CreateView): |
173
|
|
|
model = Htable |
174
|
|
|
form_class = HtableForm |
175
|
|
|
|
176
|
|
|
|
177
|
|
|
class HtableDetailView(DetailView): |
178
|
|
|
model = Htable |
179
|
|
|
|
180
|
|
|
|
181
|
|
|
class HtableUpdateView(UpdateView): |
182
|
|
|
model = Htable |
183
|
|
|
form_class = HtableForm |
184
|
|
|
|
185
|
|
|
|