mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
Added service and template relationship to notification model.
This makes it more consistent with other model classes with respect to marhmallow serialisation/deserialisation.
This commit is contained in:
@@ -202,9 +202,9 @@ def sample_notification(notify_db,
|
||||
data = {
|
||||
'id': notificaton_id,
|
||||
'to': to,
|
||||
'job_id': job.id,
|
||||
'service_id': service.id,
|
||||
'template_id': template.id
|
||||
'job': job,
|
||||
'service': service,
|
||||
'template': template
|
||||
}
|
||||
notification = Notification(**data)
|
||||
save_notification(notification)
|
||||
|
||||
Reference in New Issue
Block a user