Did I find the right examples for you? yes no

All Samples(10)  |  Call(2)  |  Derive(0)  |  Import(8)

src/d/j/django-mail-queue-2.1.2/mailqueue/admin.py   django-mail-queue(Download)
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
 
from .models import MailerMessage, Attachment
 

src/d/j/django-mail-queue-HEAD/mailqueue/admin.py   django-mail-queue(Download)
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
 
from .models import MailerMessage, Attachment
 

src/d/j/django-mail-queue-2.1.2/mailqueue/tasks.py   django-mail-queue(Download)
from celery.task import task
from .models import MailerMessage
 
@task(name="tasks.send_mail", default_retry_delay=5, max_retries=5)
def send_mail(pk):

src/d/j/django-mail-queue-HEAD/mailqueue/tasks.py   django-mail-queue(Download)
from celery.task import task
from .models import MailerMessage
 
@task(name="tasks.send_mail", default_retry_delay=5, max_retries=5)
def send_mail(pk):

src/d/j/django-mail-queue-HEAD/mailqueue/tests/__init__.py   django-mail-queue(Download)
from django.conf import settings
 
from ..models import MailerMessage
from .utils import create_email
 

src/d/j/django-mail-queue-HEAD/mailqueue/tests/utils.py   django-mail-queue(Download)
from ..models import MailerMessage
 
def create_email(**kwargs):
    """
    Utility function to make creating MailerMessage instances easier when testing.
 
    if defaults.pop("do_not_save", False):
        return MailerMessage(**defaults)
 
    return MailerMessage.objects.create(**defaults)

src/d/j/django-mail-queue-2.1.2/mailqueue/tests/__init__.py   django-mail-queue(Download)
from django.conf import settings
 
from ..models import MailerMessage
from .utils import create_email
 

src/d/j/django-mail-queue-2.1.2/mailqueue/tests/utils.py   django-mail-queue(Download)
from ..models import MailerMessage
 
def create_email(**kwargs):
    """
    Utility function to make creating MailerMessage instances easier when testing.
 
    if defaults.pop("do_not_save", False):
        return MailerMessage(**defaults)
 
    return MailerMessage.objects.create(**defaults)