Fix JSON/badge report when there are regs with no regtype
authorMagnus Hagander <magnus@hagander.net>
Fri, 30 Mar 2018 10:15:38 +0000 (12:15 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 30 Mar 2018 10:15:38 +0000 (12:15 +0200)
commit36229cb3135c459117b3382c095db78a378eb94d
treec56f087e3c70dac1a5600e2ace318dcc84047928
parentf128188bd24306be7e3f8cbeedf04bbc9bf5a299
Fix JSON/badge report when there are regs with no regtype

This could only occur for attendees that aren't actually confirmed, so
normally they would not be included in such a report because of a
filter. However, just "dump everything" is a pretty common use-case for
testing, and obviously we shouldn't *crash* in this scenario.

Spotted by ads, when doing exactly that.
postgresqleu/confreg/models.py