Kaynağa Gözat

orderlist view added email when there isn't a name (#4009)

master
nathanhighbiza 2 yıl önce
ebeveyn
işleme
41ffbda8ad
No account linked to committer's email address

+ 1
- 1
src/oscar/templates/oscar/dashboard/orders/order_list.html Dosyayı Görüntüle

@@ -114,7 +114,7 @@
114 114
                             {% if order.guest_email %}
115 115
                                 {{ order.guest_email }}
116 116
                             {% elif order.user %}
117
-                                <a href="{% url 'dashboard:user-detail' pk=order.user.id %}">{{ order.user.get_full_name|default:"-" }}</a>
117
+                                <a href="{% url 'dashboard:user-detail' pk=order.user.id %}">{{ order.user.get_full_name|default:order.user.email }}</a>
118 118
                             {% else %}
119 119
                                 &lt;{% trans "Deleted" %}&gt;
120 120
                             {% endif %}

Loading…
İptal
Kaydet