1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

move apps to own dir

This commit is contained in:
Pierre-antoine Comby
2019-08-11 14:47:44 +02:00
parent 7b23537ce1
commit fd9b9c34c7
29 changed files with 4 additions and 0 deletions

28
apps/note/apps.py Normal file
View File

@ -0,0 +1,28 @@
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.apps import AppConfig
from django.conf import settings
from django.db.models.signals import post_save
from django.utils.translation import gettext_lazy as _
from . import signals
class NoteConfig(AppConfig):
name = 'note'
verbose_name = _('note')
def ready(self):
"""
Define app internal signals to interact with other apps
"""
post_save.connect(
signals.save_user_note,
sender=settings.AUTH_USER_MODEL
)
post_save.connect(
signals.save_club_note,
sender='member.Club'
)