def enum(v, name='bill_type'): return load_enum(name).value(v).desc
def test(v='save_money'): from mysite.fb_book.book.enum_code import enum as load_enum import logging logging.warning(load_enum("bill_type")) return load_enum("bill_type").value(v).desc