Bankimport: Order transactions by their job's date (#362)

Leads to having the most recent unresolved transfers on top instead of
in between.
This commit is contained in:
Tobias Kunze
2016-12-17 11:44:31 +01:00
committed by Raphael Michel
parent d1357ed5c0
commit 5e3087341c

View File

@@ -215,6 +215,8 @@ class ImportView(EventPermissionRequiredMixin, ListView):
q = self.request.GET.get('search')
qs = qs.filter(
Q(payer__icontains=q) | Q(reference__icontains=q) | Q(comment__icontains=q)
).order_by(
'-import_job__created'
)
return qs