SciPost Code Repository

Skip to content
Snippets Groups Projects
apps.py 950 B
Newer Older
__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
from django.apps import AppConfig
from django.db.models.signals import post_save


class SubmissionsConfig(AppConfig):
    name = 'submissions'

    def ready(self):
        super().ready()

        from . import models, signals
        post_save.connect(signals.notify_new_manuscript_submitted,
                          sender=models.Submission)
        post_save.connect(signals.notify_new_editorial_recommendation,
                          sender=models.EICRecommendation)
        post_save.connect(signals.notify_new_editorial_assignment,
                          sender=models.EditorialAssignment)
        post_save.connect(signals.notify_new_referee_invitation,
                          sender=models.RefereeInvitation)
Jorran de Wit's avatar
Jorran de Wit committed
        post_save.connect(signals.notify_new_communication,
                          sender=models.EditorialCommunication)