From ad2f8859c1f1e52366c3eaa3d5a493447404a164 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 28 Apr 2016 11:06:07 +0000 Subject: [PATCH] DJ1.9 compat field.related --- orchestra/contrib/bills/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/contrib/bills/filters.py b/orchestra/contrib/bills/filters.py index 14a64765..cfc69495 100644 --- a/orchestra/contrib/bills/filters.py +++ b/orchestra/contrib/bills/filters.py @@ -98,7 +98,7 @@ class PaymentStateListFilter(SimpleListFilter): def queryset(self, request, queryset): # FIXME use queryset.computed_total instead of approx_total, bills.admin.BillAdmin.get_queryset - Transaction = queryset.model.transactions.related.related_model + Transaction = queryset.model.transactions.field.related.related_model if self.value() == 'OPEN': return queryset.filter(Q(is_open=True)|Q(type=queryset.model.PROFORMA)) elif self.value() == 'PAID':