def event_choices(events):
if events is None:<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise ImproperlyConfigured(msg)<EOL><DEDENT>try:<EOL><INDENT>choices = [(x, x) for x in events]<EOL><DEDENT>except TypeError:<EOL><INDENT>"""<STR_LIT>"""<EOL>msg = "<STR_LIT>"<EOL>raise ImproperlyConfigured(msg)<EOL><DEDENT>return choices<EOL>
Get the possible events from settings