from django.apps import AppConfig
from django.db.models.signals import m2m_changed

from .signals import trainingrequest_m2m_changed


class WorkshopsConfig(AppConfig):
    name = 'workshops'
    label = 'workshops'
    verbose_name = 'Workshops'

    def ready(self):
        # connect m2m_changed signal for TrainingRequest.domains to calculate
        # score_auto
        TrainingRequest = self.get_model('TrainingRequest')

        m2m_changed.connect(
            trainingrequest_m2m_changed,
            sender=TrainingRequest.domains.through,
        )

        m2m_changed.connect(
            trainingrequest_m2m_changed,
            sender=TrainingRequest.previous_involvement.through,
        )

f2b8b2d97cf858da01b01540ebe824c831dd0476
<mask token>


class WorkshopsConfig(AppConfig):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class WorkshopsConfig(AppConfig):
    <mask token>
    <mask token>
    <mask token>

    def ready(self):
        TrainingRequest = self.get_model('TrainingRequest')
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.domains.through)
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.previous_involvement.through)

<mask token>


class WorkshopsConfig(AppConfig):
    name = 'workshops'
    label = 'workshops'
    verbose_name = 'Workshops'

    def ready(self):
        TrainingRequest = self.get_model('TrainingRequest')
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.domains.through)
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.previous_involvement.through)

from django.apps import AppConfig
from django.db.models.signals import m2m_changed
from .signals import trainingrequest_m2m_changed


class WorkshopsConfig(AppConfig):
    name = 'workshops'
    label = 'workshops'
    verbose_name = 'Workshops'

    def ready(self):
        TrainingRequest = self.get_model('TrainingRequest')
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.domains.through)
        m2m_changed.connect(trainingrequest_m2m_changed, sender=
            TrainingRequest.previous_involvement.through)

from django.apps import AppConfig
from django.db.models.signals import m2m_changed

from .signals import trainingrequest_m2m_changed


class WorkshopsConfig(AppConfig):
    name = 'workshops'
    label = 'workshops'
    verbose_name = 'Workshops'

    def ready(self):
        # connect m2m_changed signal for TrainingRequest.domains to calculate
        # score_auto
        TrainingRequest = self.get_model('TrainingRequest')

        m2m_changed.connect(
            trainingrequest_m2m_changed,
            sender=TrainingRequest.domains.through,
        )

        m2m_changed.connect(
            trainingrequest_m2m_changed,
            sender=TrainingRequest.previous_involvement.through,
        )
