diff --git a/lottery/templates/admin/add_participants.html b/lottery/templates/admin/add_participants.html index f29dfc2..5694254 100644 --- a/lottery/templates/admin/add_participants.html +++ b/lottery/templates/admin/add_participants.html @@ -94,8 +94,21 @@ {{ invoice.created_at|date:"d.m.Y H:i" }} {% if invoice.closed_at %}{{ invoice.closed_at|date:"d.m.Y H:i" }}{% else %}—{% endif %} {{ invoice.ext_id|default:"—" }} - {{ invoice.client.name|default:"Не указан" }} - {{ invoice.client.club_card_number|default:"—" }} + {{ invoice.ext_id|default:"—" }} + + {% if invoice.client %} + {{ invoice.client.name|default:"—" }} + {% else %} + Не указан + {% endif %} + + + {% if invoice.client %} + {{ invoice.client.club_card_number|default:"—" }} + {% else %} + — + {% endif %} + {{ invoice.sum|default:"—" }} {{ invoice.bonus|default:"—" }} {{ invoice.start_bonus|default:"—" }}