make job.created_by nullable

Since letter jobs from the API aren't created by any single individual,
lets make created_by nullable. Note: We'll have to make sure that we
update the admin app to handle these jobs nicely
This commit is contained in:
Leo Hemsted
2017-07-27 12:58:13 +01:00
parent 11458c421b
commit f528236eda
4 changed files with 27 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ def process_sms_or_email_notification(*, form, notification_type, api_key, templ
return notification
def process_letter_notification(*, letter_data, api_key, template, service):
def process_letter_notification(*, letter_data, api_key, template):
job = create_letter_api_job(template)
notification = create_letter_notification(letter_data, job, api_key)
build_dvla_file.apply_async([str(job.id)], queue=QueueNames.JOBS)