lib.itmens/music/apps.py

12 lines
279 B
Python
Raw Normal View History

2021-02-12 19:23:23 +01:00
from django.apps import AppConfig
class MusicConfig(AppConfig):
name = 'music'
2021-12-30 07:38:38 -05:00
def ready(self):
from common.index import Indexer
from .models import Album, Song
Indexer.update_model_indexable(Album)
Indexer.update_model_indexable(Song)