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_allowedthat indicates whether registrations for this event are open. - Notice that the field
registeredistrueorfalseonly, and no longernull.