admin.py 2.33 KB
Newer Older
1
# -*- mode: python; coding: utf-8 -*-
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
#
# Copyright © 2017  Gabriel Détraz
# Copyright © 2017  Goulven Kermarec
# Copyright © 2017  Augustin Lemesle
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 24 25
"""
Classes admin pour les models de preferences
"""
26 27
from __future__ import unicode_literals

28
from django.contrib import admin
29 30
from reversion.admin import VersionAdmin

31 32 33
from .models import OptionalUser, OptionalMachine, OptionalTopologie
from .models import GeneralOption, Service, AssoOption, MailMessageOption

34 35

class OptionalUserAdmin(VersionAdmin):
36
    """Class admin options user"""
37 38
    pass

39

40
class OptionalTopologieAdmin(VersionAdmin):
41
    """Class admin options topologie"""
42 43
    pass

44

45
class OptionalMachineAdmin(VersionAdmin):
46
    """Class admin options machines"""
47 48
    pass

49

50
class GeneralOptionAdmin(VersionAdmin):
51
    """Class admin options générales"""
52 53
    pass

54

55
class ServiceAdmin(VersionAdmin):
56
    """Class admin gestion des services de la page d'accueil"""
57 58
    pass

59

60
class AssoOptionAdmin(VersionAdmin):
61
    """Class admin options de l'asso"""
62
    pass
63

64

65
class MailMessageOptionAdmin(VersionAdmin):
66
    """Class admin options mail"""
67 68
    pass

69

70 71
admin.site.register(OptionalUser, OptionalUserAdmin)
admin.site.register(OptionalMachine, OptionalMachineAdmin)
72
admin.site.register(OptionalTopologie, OptionalTopologieAdmin)
73 74 75
admin.site.register(GeneralOption, GeneralOptionAdmin)
admin.site.register(Service, ServiceAdmin)
admin.site.register(AssoOption, AssoOptionAdmin)
76
admin.site.register(MailMessageOption, MailMessageOptionAdmin)