diff --git a/website/events/locale/nl/LC_MESSAGES/django.mo b/website/events/locale/nl/LC_MESSAGES/django.mo index ff23925dc6185f3a9aa3e0d3f8415f6d0dc75147..a5534592e8406e53beeaf8ea54f104995e37bc1f 100644 Binary files a/website/events/locale/nl/LC_MESSAGES/django.mo and b/website/events/locale/nl/LC_MESSAGES/django.mo differ diff --git a/website/events/locale/nl/LC_MESSAGES/django.po b/website/events/locale/nl/LC_MESSAGES/django.po index aa8d1aaf29acb7128baf6f4fa31eb6c714639e7a..810604704875807a476518219de64c6e88010a62 100644 --- a/website/events/locale/nl/LC_MESSAGES/django.po +++ b/website/events/locale/nl/LC_MESSAGES/django.po @@ -301,7 +301,7 @@ msgstr "Niet betaald" #: models.py:266 msgid "Paid with cash" -msgstr "Contact betaald" +msgstr "Contant betaald" #: models.py:267 msgid "Paid with card" @@ -504,7 +504,7 @@ msgstr "niet betaald" #: templates/events/admin/registrations_table.html:13 msgid "paid cash" -msgstr "contact betaald" +msgstr "contant betaald" #: templates/events/admin/registrations_table.html:14 msgid "paid card" diff --git a/website/events/models.py b/website/events/models.py index f2a63899844043cc75c1f0a38ee9577d5ae465b2..d6fe9564648a0075130f2866906432bfd7e26586 100644 --- a/website/events/models.py +++ b/website/events/models.py @@ -161,11 +161,15 @@ class Event(models.Model, metaclass=ModelTranslateMeta): @property def participants(self): - return self.registrations.order_by('date')[:self.max_participants] + if self.max_participants is not None: + return self.registrations.order_by('date')[:self.max_participants] + return self.registrations.order_by('date') @property def queue(self): - return self.registrations.order_by('date')[self.max_participants:] + if self.max_participants is not None: + return self.registrations.order_by('date')[self.max_participants:] + return [] @property def cancellations(self): diff --git a/website/events/templates/events/admin/details.html b/website/events/templates/events/admin/details.html index 2b0e1306dd03298bf6610c9551248d84fa3e0e4d..6ccd6bd4c559f4b58d605f450cce7cc53bf41e3a 100644 --- a/website/events/templates/events/admin/details.html +++ b/website/events/templates/events/admin/details.html @@ -35,9 +35,9 @@