show the correct name when creating reimbursement
This commit is contained in:
parent
3bd821373f
commit
ffe2fc056a
|
@ -2,7 +2,7 @@
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
|
|
@ -325,6 +325,7 @@ class ReimbursementCreateView(CampViewMixin, EconomyTeamPermissionMixin, CreateV
|
||||||
paid_by_bornhack=False,
|
paid_by_bornhack=False,
|
||||||
)
|
)
|
||||||
context['total_amount'] = context['expenses'].aggregate(Sum('amount'))
|
context['total_amount'] = context['expenses'].aggregate(Sum('amount'))
|
||||||
|
context['reimbursement_user'] = self.reimbursement_user
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
|
Loading…
Reference in a new issue