Skip to content

Commit

Permalink
test: importing post signals to apps.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rzashakeri committed Jul 22, 2022
1 parent c67e52c commit a359994
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions post/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@


class PostConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'post'
default_auto_field = "django.db.models.BigAutoField"
name = "post"

def ready(self):
from actstream import registry

registry.register(self.get_model("Post"))
registry.register(self.get_model("PostLike"))
import post.signals

0 comments on commit a359994

Please sign in to comment.