-coding utf-8 __author__ Alexey from django contrib import admin from

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#-*-coding: utf-8 -*-
__author__ = 'Alexey'
from django.contrib import admin
from diplom_app.models import *
admin.site.register(Nositinfo)
admin.site.register(NameVTCC)
admin.site.register(ElementISPDn)
admin.site.register(Programsredstv)
admin.site.register(TipCZI)
admin.site.register(Model)
admin.site.register(Group)
admin.site.register(Urovendostupa)
admin.site.register(Razrechoniedeistvia)
admin.site.register(Sotrudnikotdela)
admin.site.register(Modul)
admin.site.register(PerechenPD)
admin.site.register(Namerabponastr)
admin.site.register(Namezapdoc)
admin.site.register(OfficePOobrab)
admin.site.register(Orgmeri)
admin.site.register(Architektura)
admin.site.register(SostavISPDn)
admin.site.register(CZPDnvkl)
class SegmentInline(admin.StackedInline):
model = Segment
extra = 0
class ISAdmin(admin.ModelAdmin):
inlines = [
SegmentInline,
]
fieldsets = (
(u'Учреждение', {
'classes': ('collapse','wide', 'extrapretty'),
'fields': ('nameYchr', 'cratkoname', 'ISPDn', 'Director', 'DoljnoctotvetstvenogoIB' , 'FamilyotvetstvennogoIB' , 'Address' , 'Doljnostotvzaprikaz' , 'Familyotvzaprikaz','yesorno1' , 'yesorno2','yesorno3' , 'yesorno4' , 'yesorno5', 'yesorno6' , 'Dostupbezrazreshenia' , 'Otvzareagirovanie' , 'Kontrolpopredotvrashen' , 'Kontrolsostoiania' , 'Dostupstoronorg', 'Kontrolcripto')
}),
(u'Приказ', {
'classes': ('collapse','wide', 'extrapretty'),
'fields': ('numberprikaz', 'datevihoda', 'ytverjden')
}),
(u'Договор', {
'classes': ('collapse','wide', 'extrapretty'),
'fields': ('numberdogovor', 'datepodpisania', 'dateprovedeniaobsledovania')
}),
(u'Исполнитель', {
'classes': ('collapse','wide', 'extrapretty'),
'fields': ('nameorganizachii', 'predcedatelcomisii', 'chlenatestachionkomisii')
}),
(u'ИС', {
'classes': ('collapse','wide', 'extrapretty'),
'fields': ('struktura', 'rejimobrabotkiPD', 'rejimrazgranicheniaprav', 'mestonachojdenietexsredstv', 'nositeli' , 'officePOobrab' , 'ustroistvaxraneniainf' ,
'ustroistvavivoda' , 'ustroistvavoda' , 'etaj' , 'orgmeri' , 'rejimobrabotki' , 'rejimrazgran', 'nositeliinfo' , 'architektura' , 'sostavISPDn', 'opisanieISPDn',
'yesorno12' , 'yesorno13' , 'yesorno14' , 'yesorno15' , 'yesorno16' , 'yesorno17' , 'yesorno18' , 'yesorno19' , 'yesorno20' , 'yesorno21' , 'yesorno22' ,
'yesorno23' , 'yesorno24' , 'yesorno25' , 'zonazachiti' , 'mera' , 'obizatelstva' , 'potrebitel' , 'doporg' , 'cZPDnvkl' , 'subjectPDn' , 'infPDn')
})
)
admin.site.register(IS, ISAdmin)
admin.site.register(VTCC)
admin.site.register(Merizachiti)
admin.site.register(ARM)
admin.site.register(Copir)
admin.site.register(Server)
admin.site.register(Comutator)
admin.site.register(Perechentexsredstv)
admin.site.register(Matricadostupa)
admin.site.register(Stoimosttexsredstv)
admin.site.register(Mintrebovania)
admin.site.register(Ustroistvavivoda)
admin.site.register(Ustroistvavoda)
admin.site.register(SosARM)
admin.site.register(Yrovenzach)
admin.site.register(Internet)
admin.site.register(Doppolzovatel)
admin.site.register(Rabotaponastroike)
admin.site.register(Stoimosttexdoc)