Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/j/django_notifications-0.1.dev/django_notifications/tasks.py   django_notifications(Download)
from celery.registry import tasks
 
from models import MODEL_ACTIONS, NOTIFICATION_TYPES
from models import SubscriptionMap, Message
from models import get_choice_id
 
			field_values.update({'model': model,
								'action': get_choice_id(action, MODEL_ACTIONS, \
														 reverse = True)})
			context = Context(field_values)
			message_rendered = template.render(context)
 
			NotificationTask.delay(type, subscriber, message_rendered)
 
			if model_object_id and (action == get_choice_id('delete', MODEL_ACTIONS)):