1 from django
.apps
import AppConfig
2 from django
.db
.models
.signals
import post_save
4 from mygpo
.history
.models
import EpisodeHistoryEntry
5 from mygpo
.episodestates
import set_episode_state
8 class EpisodeStatesConfig(AppConfig
):
9 name
= 'mygpo.episodestates'
10 verbose_name
= 'Episode States'
13 post_save
.connect(set_episode_state
, sender
=EpisodeHistoryEntry
)