filter on reimbursement_user not user

This commit is contained in:
Thomas Steen Rasmussen 2018-08-30 13:24:23 +02:00
parent b56b9c27b4
commit fca7bd3721

View file

@ -31,7 +31,7 @@ class ExpenseListView(LoginRequiredMixin, CampViewMixin, ListView):
Add reimbursements to the context
"""
context = super().get_context_data(**kwargs)
context['reimbursement_list'] = Reimbursement.objects.filter(user=self.request.user)
context['reimbursement_list'] = Reimbursement.objects.filter(reimbursement_user=self.request.user)
return context