from django.db.models.signals import post_save
from notifications.signals import notify
from articles.models import Article


# notification signal
def my_handler(sender, instance, created, **kwargs):
  notify.send(instance, verb='was saved')


post_save.connect(my_handler, sender=Article)
# notification signal

from django.db.models.signals import post_save
from notifications.signals import notify
from articles.models import Article


# notification signal
def my_handler(sender, instance, created, **kwargs):
  notify.send(instance, verb='was saved')


post_save.connect(my_handler, sender=Article)
# notification signal

# notification signal # notification signal