Did I find the right examples for you? yes no

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

src/s/i/sikteeri-HEAD/membership/email_utils.py   sikteeri(Download)
def preapprove_email_sender(sender, instance=None, user=None, **kwargs):
    from services.models import Service
    from models import MEMBER_TYPES_DICT
    # imported here since on top-level it would lead into a circular import
    email_body = render_to_string('membership/preapprove_mail.txt', {
        'membership': instance,
        'membership_type': MEMBER_TYPES_DICT[instance.type],