Specific messaging when scheduling revisions for live pages

pull/4157/merge
Patrick Woods 2018-01-10 22:05:07 -05:00 zatwierdzone przez Matt Westcott
rodzic 3f0972507b
commit 7d43a45dd3
1 zmienionych plików z 12 dodań i 5 usunięć

Wyświetl plik

@ -359,11 +359,18 @@ def edit(request, page_id):
page.get_admin_display_title()
)
else:
message = _(
"Page '{0}' has been scheduled for publishing."
).format(
page.get_admin_display_title()
)
if page.live:
message = _(
"Page '{0}' is live and this revision has been scheduled for publishing."
).format(
page.get_admin_display_title()
)
else:
message = _(
"Page '{0}' has been scheduled for publishing."
).format(
page.get_admin_display_title()
)
messages.success(request, message, buttons=[
messages.button(