mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-29 18:40:10 -04:00
Remove job_status from allowed properties
We can’t guarantee it’s always present, so shouldn’t allow direct access to it.
This commit is contained in:
@@ -24,7 +24,6 @@ class Job(JSONModel):
|
||||
'original_file_name',
|
||||
'created_at',
|
||||
'notification_count',
|
||||
'job_status',
|
||||
'created_by',
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
notifications,
|
||||
caption=uploaded_file_name,
|
||||
caption_visible=False,
|
||||
empty_message='These messages have been deleted because they were sent more than {} days ago'.format(service_data_retention_days) if job.job_status == 'finished' else 'No messages to show yet…',
|
||||
empty_message='These messages have been deleted because they were sent more than {} days ago'.format(service_data_retention_days) if job.status == 'finished' else 'No messages to show yet…',
|
||||
field_headings=[
|
||||
'Recipient',
|
||||
'Status'
|
||||
|
||||
Reference in New Issue
Block a user