@notification_handler
def simple_push(notification):
 registrations = PushNotificationRegistration.objects.filter(creator=notification.owner)
 for reg in registrations:
  _send_simple_push(reg.push_url, notification.id)

@ notification_handler def simple_push ( notification ) : registrations = PushNotificationRegistration . objects . filter ( creator = notification . owner ) for reg in registrations : _send_simple_push ( reg . push_url , notification . id )
send simple push notifications to users that have opted in to them .