Changeset View
Changeset View
Standalone View
Standalone View
comments/apps.py
| from django.apps import AppConfig | from django.apps import AppConfig | ||||
| class CommentsConfig(AppConfig): | class CommentsConfig(AppConfig): | ||||
| name = 'comments' | name = 'comments' | ||||
| def ready(self) -> None: | def ready(self) -> None: | ||||
| import comments.signals # noqa: F401 | import comments.signals # noqa: F401 | ||||
| from actstream import registry | |||||
| registry.register(self.get_model('Comment')) | |||||
| registry.register(self.get_model('Like')) | |||||