[API] handle missing URLs in episode action upload
[mygpo.git] / mygpo / search / apps.py
blobba3754028f18c3b1020c985c79de9283c7e1be96
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):
8 name = 'mygpo.search'
9 verbose_name = 'Search'
11 def ready(self):
12 Podcast = apps.get_model('podcasts.Podcast')
13 post_save.connect(index_podcast, sender=Podcast)
14 pass