1 from django
.apps
import AppConfig
, apps
2 from django
.db
.models
.signals
import post_save
4 from mygpo
.search
.index
import index_podcast
7 class SearchConfig(AppConfig
):
9 verbose_name
= 'Search'
12 Podcast
= apps
.get_model('podcasts.Podcast')
13 post_save
.connect(index_podcast
, sender
=Podcast
)