diff --git a/src/postorius/templates/postorius/lists/held_messages.html b/src/postorius/templates/postorius/lists/held_messages.html index c44a6ac..b817c06 100644 --- a/src/postorius/templates/postorius/lists/held_messages.html +++ b/src/postorius/templates/postorius/lists/held_messages.html @@ -48,15 +48,7 @@ {{ msg.subject }} {{ msg.sender }} - - {% if msg.reasons %} - {{ msg.reason }} - {% else %} - {% for reason in msg.reasons %} -

{{ reason }}

- {% endfor %} - {% endif %} - + {{ msg.reason }} {{ msg.hold_date }} {% endfor %} diff --git a/src/postorius/views/rest.py b/src/postorius/views/rest.py index 5b3345a..2fb4cde 100644 --- a/src/postorius/views/rest.py +++ b/src/postorius/views/rest.py @@ -79,11 +79,7 @@ return HttpResponse(held_message.msg, content_type='text/plain') response_data = dict() response_data['sender'] = held_message.sender - try: - response_data['reasons'] = held_message.reasons - except AttributeError: - pass - response_data['reasons'] = held_message.reasons + response_data['reason'] = held_message.reason response_data['hold_date'] = held_message.hold_date response_data['msg'] = parse(held_message.msg) response_data['msgid'] = held_message.request_id