Commit cf1de39f authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

views: Fix typo in dictionary key

One extra "s" in "messages", which was causing the following exception
when bulk updating patches with no patches selected:

  File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/views/__init__.py" in process_multiplepatch_form
    157.         context['messsages'] += ["No patches selected; nothing updated"]

  Exception Type: KeyError
  Exception Value: 'messsages'
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent f1f804d6
......@@ -154,7 +154,7 @@ def process_multiplepatch_form(form, user, action, patches, context):
return ['The submitted form data was invalid']
if len(patches) == 0:
context['messsages'] += ["No patches selected; nothing updated"]
context['messages'] += ["No patches selected; nothing updated"]
return errors
changed_patches = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment