mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 14:04:46 +00:00
Clean up E201 error
This commit is contained in:
parent
80c2b00e74
commit
8013c9400c
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,7 @@ def reject_moderation(request, revision_id):
|
|||
raise PermissionDenied
|
||||
|
||||
if not revision.submitted_for_moderation:
|
||||
messages.error(request, _("The page '{0}' is not currently awaiting moderation.").format( revision.page.title))
|
||||
messages.error(request, _("The page '{0}' is not currently awaiting moderation.").format(revision.page.title))
|
||||
return redirect('wagtailadmin_home')
|
||||
|
||||
if request.method == 'POST':
|
||||
|
|
|
|||
Loading…
Reference in a new issue