Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make raffle availability event specific #233

Open
jandd opened this issue Jan 30, 2020 · 0 comments
Open

make raffle availability event specific #233

jandd opened this issue Jan 30, 2020 · 0 comments

Comments

@jandd
Copy link
Contributor

jandd commented Jan 30, 2020

Is your feature request related to a problem? Please describe.
Currently the website shows the "take part in the raffle" checkbox for all events that are not ended. The raffle availability should be a configurable flag for an event instead.

Describe the solution you'd like

  • Add a new boolean field "raffle_available" to the Event model
  • add database migration to add the field with default value of "false" to existing events
  • modify event.models.Event.is_raffle_available to check for the value of this flag
  • add/modify tests

Describe alternatives you've considered
Just ignore the checkbox value on attendee entries if there is no raffle planned

jandd added a commit to jandd/devday_website that referenced this issue Feb 12, 2020
This is a quick fix to address devdaydresden#233 for Dev Day 2020. A test for
Event.is_raffle_available has been added to keep test coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant