Allow attendee reports to take fixed list of options
authorMagnus Hagander <magnus@hagander.net>
Mon, 29 Oct 2018 12:13:28 +0000 (13:13 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 29 Oct 2018 12:13:28 +0000 (13:13 +0100)
commit0fb7448eb4465fb0c1b550ce8cbdfd1bd7a5681d
treec422492c03f89d9dda06b02889a5a004c7d7ab1f
parentb616aa12151d5c1915ed6517e07d074d5f9c2c78
Allow attendee reports to take fixed list of options

Previously only looked-up objects or strings were allowed, which meant
that for example looking up photo consent would easily break if one did
not explicitly type "true" or "false" in the field. Add support for
taking a tuple of options instead, which can then be hardcoded.
postgresqleu/confreg/reports.py