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

10 lines
226 B
Python

from django.apps import AppConfig
class BooksConfig(AppConfig):
name = 'books'
def ready(self):
from common.index import Indexer
from .models import Book
Indexer.update_model_indexable(Book)