summaryrefslogtreecommitdiff
path: root/postgresqleu/adyen/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'postgresqleu/adyen/admin.py')
-rw-r--r--postgresqleu/adyen/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/postgresqleu/adyen/admin.py b/postgresqleu/adyen/admin.py
index b0523712..430ab217 100644
--- a/postgresqleu/adyen/admin.py
+++ b/postgresqleu/adyen/admin.py
@@ -36,7 +36,8 @@ class MerchantAccountFilter(admin.SimpleListFilter):
parameter_name = 'merchantaccount'
def lookups(self, request, model_admin):
- return (('PostgreSqlEUCOM', 'PostgreSqlEUCOM'), ('PostgreSqlEUPOS', 'PostgreSqlEUPOS'), )
+ # This is painfully inefficient, but it's called infrequently, so meh.
+ return [(c['merchantAccountCode'], c['merchantAccountCode']) for c in Notification.objects.values('merchantAccountCode').distinct()]
def queryset(self, request, queryset):
if self.value():