@receiver(job_was_submitted)
def on_job_was_submitted(sender, job, **kwargs):
 subject_template = loader.get_template('jobs/email/job_was_submitted_subject.txt')
 message_template = loader.get_template('jobs/email/job_was_submitted.txt')
 message_context = Context({'content_object': job, 'site': Site.objects.get_current()})
 subject = subject_template.render(message_context)
 message = message_template.render(message_context)
 send_mail(subject, message, settings.JOB_FROM_EMAIL, [EMAIL_JOBS_BOARD])

@ receiver ( job_was_submitted ) def on_job_was_submitted ( sender , job , ** kwargs ) : subject_template = loader . get_template ( 'jobs/email/job_was_submitted_subject.txt' ) message_template = loader . get_template ( 'jobs/email/job_was_submitted.txt' ) message_context = Context ( { 'content_object' : job , 'site' : Site . objects . get_current ( ) } ) subject = subject_template . render ( message_context ) message = message_template . render ( message_context ) send_mail ( subject , message , settings . JOB_FROM_EMAIL , [ EMAIL_JOBS_BOARD ] )
notify the jobs board when a new job has been submitted for approval .