Skip to content

Commit

Permalink
Merge pull request #801 from malan88/master
Browse files Browse the repository at this point in the history
Fix bug with non-field related errors
  • Loading branch information
ialbert committed Apr 7, 2021
2 parents 9c466a3 + d548032 commit 869c898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biostar/forum/templatetags/forum_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def form_errors(form, wmd_prefix='', override_content=False):
"""

try:
errorlist = [('', message) for message in form.non_field_errors()]
errorlist = [('', message, '') for message in form.non_field_errors()]
for field in form:
for error in field.errors:
# wmd_prefix is required when dealing with 'content' field.
Expand Down

0 comments on commit 869c898

Please sign in to comment.