Show registration allowed in events api
Needed for ThaliApp#90.
Short description
Adds the registration_allowed
field to the events API.
Also makes sure that the registration_allowed
field in the Events model and the registered
field in the EventListSerializer
can no longer be None
.
Steps to use this feature
- Visit
/api/v1/events/
. - Notice each event has a boolean field
registration_allowed
that indicates whether registrations for this event are open. - Notice that the field
registered
istrue
orfalse
only, and no longernull
.