Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

admin.py 2.49 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

Gabriel Detraz's avatar
Gabriel Detraz committed
31 32 33 34 35 36 37 38 39 40
from .models import (
    OptionalUser,
    OptionalMachine,
    OptionalTopologie,
    GeneralOption,
    Service,
    AssoOption,
    MailMessageOption,
    HomeOption
)
41

42 43

class OptionalUserAdmin(VersionAdmin):
44
    """Class admin options user"""
45 46
    pass

47

48
class OptionalTopologieAdmin(VersionAdmin):
49
    """Class admin options topologie"""
50 51
    pass

52

53
class OptionalMachineAdmin(VersionAdmin):
54
    """Class admin options machines"""
55 56
    pass

57

58
class GeneralOptionAdmin(VersionAdmin):
59
    """Class admin options générales"""
60 61
    pass

62

63
class ServiceAdmin(VersionAdmin):
64
    """Class admin gestion des services de la page d'accueil"""
65 66
    pass

67

68
class AssoOptionAdmin(VersionAdmin):
69
    """Class admin options de l'asso"""
70
    pass
71

72

73
class MailMessageOptionAdmin(VersionAdmin):
74
    """Class admin options mail"""
75 76
    pass

77

Gabriel Detraz's avatar
Gabriel Detraz committed
78 79 80 81 82
class HomeOptionAdmin(VersionAdmin):
    """Class admin options home"""
    pass


83 84
admin.site.register(OptionalUser, OptionalUserAdmin)
admin.site.register(OptionalMachine, OptionalMachineAdmin)
85
admin.site.register(OptionalTopologie, OptionalTopologieAdmin)
86
admin.site.register(GeneralOption, GeneralOptionAdmin)
Gabriel Detraz's avatar
Gabriel Detraz committed
87
admin.site.register(HomeOption, HomeOptionAdmin)
88 89
admin.site.register(Service, ServiceAdmin)
admin.site.register(AssoOption, AssoOptionAdmin)
90
admin.site.register(MailMessageOption, MailMessageOptionAdmin)