Commit 875e322c authored by Aurélien Bompard's avatar Aurélien Bompard

Use msg.reasons instead of msg.moderation_reasons

This follows mailman/mailmanclient@4c6708ed
parent ceac0a84
Pipeline #4017899 failed with stage
in 3 minutes and 1 second
......@@ -52,7 +52,7 @@
{% if msg.reasons %}
{{ msg.reason }}
{% else %}
{% for reason in msg.moderation_reasons %}
{% for reason in msg.reasons %}
<p>{{ reason }}</p>
{% endfor %}
{% endif %}
......
......@@ -83,7 +83,7 @@ def get_held_message(request, list_id, held_id=-1):
response_data['reasons'] = held_message.reasons
except AttributeError:
pass
response_data['moderation_reasons'] = held_message.moderation_reasons
response_data['reasons'] = held_message.reasons
response_data['hold_date'] = held_message.hold_date
response_data['msg'] = parse(held_message.msg)
response_data['msgid'] = held_message.request_id
......
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