mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Simplify creating BroadcastMessage instances
This avoids passing loads of unnecessary boilerplate values.
This commit is contained in:
+5
-5
@@ -667,11 +667,11 @@ def find_element_by_tag_and_partial_text(page, tag, string):
|
|||||||
|
|
||||||
def broadcast_message_json(
|
def broadcast_message_json(
|
||||||
*,
|
*,
|
||||||
id_,
|
id_=None,
|
||||||
service_id,
|
service_id=None,
|
||||||
template_id,
|
template_id=None,
|
||||||
status,
|
status='draft',
|
||||||
created_by_id,
|
created_by_id=None,
|
||||||
starts_at=None,
|
starts_at=None,
|
||||||
finishes_at=None,
|
finishes_at=None,
|
||||||
cancelled_at=None,
|
cancelled_at=None,
|
||||||
|
|||||||
Reference in New Issue
Block a user