Fix detection of pending multiregs
authorMagnus Hagander <magnus@hagander.net>
Tue, 20 Feb 2018 09:58:16 +0000 (10:58 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 20 Feb 2018 09:58:16 +0000 (10:58 +0100)
commit5a4dba53a8206d05ed1edfb6753c29903129ec6c
tree8dc09292fe6c57856362fdd8c086a7d29c703b73
parentc538392cf82c77cf2ad997dea0ebf1859dabf2e8
Fix detection of pending multiregs

The correct detection of pending multiregs is required to show the
"Create invoice" button to users. However, the existing code would look
at the first registration in the list (with no order by) and check if it
was pending, never bothering to look at the rest. Instead, it's supposed
to look at all of them, and indicate true if *any* pending registrations
exist.
postgresqleu/confreg/views.py