def build_choice(): event_types = EventType.objects.all() choices = Choices() choices.choices_clear() for event_type in event_types: dub = (event_type.abbr,event_type.label) choices.add_choices(dub) # print choices.choices return choices
def build_choice(): event_types = EventType.objects.all() choices = Choices() choices.choices_clear() for event_type in event_types: dub = (event_type.abbr, event_type.label) choices.add_choices(dub) # print choices.choices return choices
def build_users(org): users = User.objects.filter(org=org) user_choices = Choices() user_choices.choices_clear() i = 0 for user in users: i += 1 dub = (str(i), user.email) user_choices.add_choices(dub) # print user_choices.choices return user_choices
def build_users(org): users = User.objects.filter(org=org) user_choices = Choices() user_choices.choices_clear() i=0 for user in users: i += 1 dub = (str(i),user.email) user_choices.add_choices(dub) # print user_choices.choices return user_choices