2017-09-10 14:53:02 +00:00
|
|
|
# -*- mode: python; coding: utf-8 -*-
|
2017-08-24 19:36:59 +00:00
|
|
|
# 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.
|
2017-10-14 04:03:53 +00:00
|
|
|
"""
|
|
|
|
Classes admin pour les models de preferences
|
|
|
|
"""
|
2017-09-10 23:29:24 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-06-25 22:50:55 +00:00
|
|
|
from django.contrib import admin
|
2017-08-24 19:36:59 +00:00
|
|
|
from reversion.admin import VersionAdmin
|
|
|
|
|
2018-04-16 16:22:51 +00:00
|
|
|
from .models import (
|
|
|
|
OptionalUser,
|
|
|
|
OptionalMachine,
|
|
|
|
OptionalTopologie,
|
|
|
|
GeneralOption,
|
|
|
|
Service,
|
2018-06-30 17:19:40 +00:00
|
|
|
MailContact,
|
2018-08-31 18:41:04 +00:00
|
|
|
Reminder,
|
2018-04-16 16:22:51 +00:00
|
|
|
AssoOption,
|
|
|
|
MailMessageOption,
|
|
|
|
HomeOption
|
|
|
|
)
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
|
|
|
|
class OptionalUserAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options user"""
|
2017-08-24 19:36:59 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-08-26 13:10:18 +00:00
|
|
|
class OptionalTopologieAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options topologie"""
|
2017-08-26 13:10:18 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
class OptionalMachineAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options machines"""
|
2017-08-24 19:36:59 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
class GeneralOptionAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options générales"""
|
2017-08-24 19:36:59 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
class ServiceAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin gestion des services de la page d'accueil"""
|
2017-08-24 19:36:59 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2018-06-30 17:19:40 +00:00
|
|
|
class MailContactAdmin(VersionAdmin):
|
2018-07-26 19:53:32 +00:00
|
|
|
"""Admin class for contact email adresses"""
|
2018-06-30 17:19:40 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
class AssoOptionAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options de l'asso"""
|
2017-08-24 19:36:59 +00:00
|
|
|
pass
|
2017-06-25 22:50:55 +00:00
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2017-09-08 20:53:13 +00:00
|
|
|
class MailMessageOptionAdmin(VersionAdmin):
|
2017-10-14 04:03:53 +00:00
|
|
|
"""Class admin options mail"""
|
2017-09-08 20:53:13 +00:00
|
|
|
pass
|
|
|
|
|
2017-10-14 04:03:53 +00:00
|
|
|
|
2018-04-16 16:22:51 +00:00
|
|
|
class HomeOptionAdmin(VersionAdmin):
|
|
|
|
"""Class admin options home"""
|
|
|
|
pass
|
|
|
|
|
2018-08-31 18:41:04 +00:00
|
|
|
class ReminderAdmin(VersionAdmin):
|
|
|
|
"""Class reminder"""
|
|
|
|
pass
|
2018-04-16 16:22:51 +00:00
|
|
|
|
2017-08-24 19:36:59 +00:00
|
|
|
admin.site.register(OptionalUser, OptionalUserAdmin)
|
|
|
|
admin.site.register(OptionalMachine, OptionalMachineAdmin)
|
2017-08-26 13:10:18 +00:00
|
|
|
admin.site.register(OptionalTopologie, OptionalTopologieAdmin)
|
2017-08-24 19:36:59 +00:00
|
|
|
admin.site.register(GeneralOption, GeneralOptionAdmin)
|
2018-04-16 16:22:51 +00:00
|
|
|
admin.site.register(HomeOption, HomeOptionAdmin)
|
2017-08-24 19:36:59 +00:00
|
|
|
admin.site.register(Service, ServiceAdmin)
|
2018-06-30 17:19:40 +00:00
|
|
|
admin.site.register(MailContact, MailContactAdmin)
|
2018-08-31 18:41:04 +00:00
|
|
|
admin.site.register(Reminder, ReminderAdmin)
|
2017-08-24 19:36:59 +00:00
|
|
|
admin.site.register(AssoOption, AssoOptionAdmin)
|
2017-09-08 20:53:13 +00:00
|
|
|
admin.site.register(MailMessageOption, MailMessageOptionAdmin)
|