first attempt at refatoring the user creating to order confirmaton page

This commit is contained in:
PCoder 2017-09-21 06:41:09 +05:30
commit e2cb70a697
4 changed files with 127 additions and 47 deletions

View file

@ -39,7 +39,7 @@
<div class="col-xs-12 col-sm-6">
<address>
<h3><b>{% trans "Billed To:"%}</b></h3>
{% with request.user.billing_addresses.first as billing_address %}
{% with billing_address_data as billing_address %}
{{billing_address.cardholder_name}}<br> {{billing_address.street_address}}, {{billing_address.postal_code}}<br>
{{billing_address.city}}, {{billing_address.country}}.
{% endwith %}