def send_subscriber_message(subscriber_message_id): # import it here to prevent a cyclic import error from mailinglist.models import SubscriberMessage subscriber_message = SubscriberMessage.objects.get( id=subscriber_message_id ) emails.send_subscriber_message(subscriber_message)
def send_subscriber_message(subscriber_message_id): from mailinglist.models import SubscriberMessage subscriber_message = SubscriberMessage.objects.get( id=subscriber_message_id) emails.send_subscriber_message(subscriber_message)