Exemple #1
0
def find_key_by_value_regist_status(regist_status):
    key = find_key_by_value(REGIST_STATUS_CHOICES, regist_status)
    return key
Exemple #2
0
def find_key_by_value_regist_request_media(regist_request_media):
    key = find_key_by_value(REQUEST_MEDIA_CHOICES, regist_request_media)
    if key == None:
        return 1 # the default one is to view by browser
    return key
Exemple #3
0
def find_key_by_value_regist_type(regist_type):
    key = find_key_by_value(REGIST_TYPE_CHOICES, regist_type)
    return key