1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-29 03:51:41 +02:00

Add logs in tox settings

This commit is contained in:
Yohann D'ANELLO
2020-03-11 17:20:16 +01:00
parent 5d25f9830c
commit 695ef446ec
5 changed files with 12 additions and 10 deletions

@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from django.apps import AppConfig
from django.db.models.signals import pre_save, post_save, post_delete
from django.utils.translation import gettext_lazy as _
@ -11,4 +12,7 @@ class LogsConfig(AppConfig):
def ready(self):
# noinspection PyUnresolvedReferences
import logs.signals
from . import signals
pre_save.connect(signals.pre_save_object)
post_save.connect(signals.save_object)
post_delete.connect(signals.delete_object)