diff --git a/src/core/models.py b/src/core/models.py
index 1c86e8c..59c8e2f 100644
--- a/src/core/models.py
+++ b/src/core/models.py
@@ -165,6 +165,11 @@ class OrderManager(models.Manager):
def with_lines(self):
return self.select_related('lines')
+ def without_drafts(self):
+ return self.exclude(
+ status=OrderStatus.DRAFT
+ )
+
def with_fulfillment(self):
return self.annotate(
total_quantity_fulfilled=models.Sum('lines__quantity_fulfilled'),
diff --git a/src/static/styles/main.css b/src/static/styles/main.css
index 7cfbe56..44ac42b 100644
--- a/src/static/styles/main.css
+++ b/src/static/styles/main.css
@@ -577,13 +577,20 @@ article > header {
display: flex;
justify-content: space-between;
align-items: center;
- align-content: center;
}
.article__header--with-action h1 {
margin-bottom: 0;
}
+@media screen and (max-width: 600px) {
+ .article__header--with-action {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+
+}
+
article + article {
margin-top: 8rem;
}
@@ -897,6 +904,13 @@ article + article {
gap: 4rem;
}
+@media screen and (max-width: 600px) {
+ .customer__detail-section {
+ grid-template-columns: 1fr;
+ gap: 1rem;
+ }
+}
+
diff --git a/src/storefront/templates/storefront/customer_detail.html b/src/storefront/templates/storefront/customer_detail.html
index e833612..213666d 100644
--- a/src/storefront/templates/storefront/customer_detail.html
+++ b/src/storefront/templates/storefront/customer_detail.html
@@ -57,7 +57,6 @@
{% endfor %}
-{% with order_list=customer.orders.all %}
Your orders
@@ -73,7 +72,7 @@
{% empty %}
@@ -82,6 +81,5 @@
#{{order.pk}}
{{order.created_at|date:"M j, Y"}}
- ${{order.total_net_amount}}
+ ${{order.get_total_price_after_discount}}
See details →