Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Do not include notes in order payment page

akjanik00f158ee64e1
diff --git a/saleor/order/views.py b/saleor/order/views.py
index 8507880cb7..80775dd3db 100644
--- a/saleor/order/views.py
+++ b/saleor/order/views.py
@@ -70,11 +70,10 @@ def payment(request, token):
payment_method = payment_form.cleaned_data['method']
return redirect(
'order:payment', token=order.token, variant=payment_method)
- notes = order.notes.filter(is_public=True)
ctx = {
'order': order, 'groups': groups, 'payment_form': payment_form,
'payments': payments, 'waiting_payment': waiting_payment,
- 'waiting_payment_form': waiting_payment_form, 'notes': notes}
+ 'waiting_payment_form': waiting_payment_form}
return TemplateResponse(request, 'order/payment.html', ctx)
diff --git a/templates/order/payment.html b/templates/order/payment.html
index ea901aeec2..e1674a9b5d 100644
--- a/templates/order/payment.html
+++ b/templates/order/payment.html
@@ -90,28 +90,6 @@
{% endif %}
{% endif %}
{% include 'order/_ordered_items_table.html' %}
- {% if notes %}
- <h2 class="order-notes__header">{% trans "Notes" context "Order notes list" %}</h2>
- {% for note in notes %}
- <small>
- {% if note.user == user %}
- {% blocktrans with date=note.date %}
- {{ date }} by you
- {% endblocktrans %}
- {% elif note.user.is_staff %}
- {% trans 'staff' context 'Order note author is staff' as note_author_staff%}
- {% blocktrans with author=note_author_staff date=note.date %}
- {{ date }} by <span class="text-muted">{{ author }}</span>
- {% endblocktrans %}
- {% else %}
- {% blocktrans with author=note.author date=note.date %}
- {{ date }} by {{ author }}
- {% endblocktrans %}
- {% endif %}
- </small>
- <p>{{note.content}}</p>
- {% endfor %}
- {% endif %}
</div>
</div>
{% endblock content %}