2020-03-07 12:12:17 +00:00
|
|
|
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2019-09-18 12:26:42 +00:00
|
|
|
from django.apps import AppConfig
|
2020-03-18 13:42:35 +00:00
|
|
|
from django.db.models.signals import pre_save, pre_delete
|
2019-09-18 12:26:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PermissionConfig(AppConfig):
|
|
|
|
name = 'permission'
|
2020-03-18 13:42:35 +00:00
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from . import signals
|
|
|
|
pre_save.connect(signals.pre_save_object)
|
|
|
|
pre_delete.connect(signals.pre_delete_object)
|