Fixes: 1) Correct `urlsafe_base64_encode` decoding logic in tests; 2) Fix queryset access issues in resolvers; 3) Address missing or incorrect imports across multiple files. Extra: Improve code readability with consistent naming and formatting; Add `# noinspection` annotations to suppress IDE warnings; Update `pyproject.toml` to exclude `drf.py` in MyPy checks.
13 lines
374 B
Python
13 lines
374 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class CoreConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "core"
|
|
verbose_name = _("core")
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
def ready(self):
|
|
import core.elasticsearch.documents
|
|
import core.signals # noqa: F401
|