lib.itmens/books/apps.py

11 lines
226 B
Python
Raw Normal View History

2020-05-01 22:46:15 +08:00
from django.apps import AppConfig
class BooksConfig(AppConfig):
name = 'books'
2021-12-30 07:38:38 -05:00
def ready(self):
from common.index import Indexer
from .models import Book
Indexer.update_model_indexable(Book)