Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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