def METHOD_NAME(sender, instance, **kwargs):
    if instance.status == instance.INCOMPLETE:
        return
    query = TodolistPackage.objects.filter(todolist=instance.todolist, status__exact=instance.INCOMPLETE)
    if query.count() > 0:
        return
    # Send e-mail notification
    subject = "The last package on the TODO list '%s' has been completed." % instance.todolist.name
    tmpl = loader.get_template('todolists/complete_email_notification.txt')
    toemail = [instance.todolist.creator.email]
    ctx = {
        'todolist': instance.todolist,
    }
    msg = EmailMessage(subject, tmpl.render(ctx), 'Arch Website Notification <nobody@archlinux.org>', toemail)
    msg.send(fail_silently=True)