Fixes: 1) Update return type of `create_object` to `Any`; Extra: 1) Remove unused fields (`icon`, `priority`, `hide`) from `blog.apps`; 2) Update API URLs to include `version` endpoint; 3) Miscellaneous cleanup and comments.
13 lines
382 B
Python
13 lines
382 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class BlogConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "blog"
|
|
verbose_name = _("blog")
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
def ready(self) -> None:
|
|
import blog.elasticsearch.documents
|
|
import blog.signals # noqa: F401
|