lib.itmens/music/apps.py
2022-01-17 14:57:29 -05:00

11 lines
279 B
Python

from django.apps import AppConfig
class MusicConfig(AppConfig):
name = 'music'
def ready(self):
from common.index import Indexer
from .models import Album, Song
Indexer.update_model_indexable(Album)
Indexer.update_model_indexable(Song)