happeninghq / happening

Open Source Event/Community management
MIT License
2 stars 1 forks source link

Allow having a "checkbox" option on all configuration variables #99

Closed jscott1989 closed 8 years ago

jscott1989 commented 8 years ago

e.g. for the "Max Tickets per person" option - we should be able to have a checkbox to disable it.

this is common enough to have a pattern built into happening.

jscott1989 commented 8 years ago

This is now possible by using can_be_disabled = True on the configuration variable.

and then use .is_enabled() instead of .get() to check that the variable is enabled before using it.