show the correct name when creating reimbursement

This commit is contained in:
Thomas Steen Rasmussen 2018-09-13 13:53:49 +02:00
parent 3bd821373f
commit ffe2fc056a
2 changed files with 2 additions and 1 deletions

View file

@ -2,7 +2,7 @@
{% load bootstrap3 %}
{% block content %}
<h3>Create Reimbursement for User {{ user }}</h3>
<h3>Create Reimbursement for User {{ reimbursement_user }}</h3>
<div class="panel panel-default">
<div class="panel-heading">

View file

@ -325,6 +325,7 @@ class ReimbursementCreateView(CampViewMixin, EconomyTeamPermissionMixin, CreateV
paid_by_bornhack=False,
)
context['total_amount'] = context['expenses'].aggregate(Sum('amount'))
context['reimbursement_user'] = self.reimbursement_user
return context
def form_valid(self, form):