Ejemplo n.º 1
0
def r_info(request):
    r_info_objs = RetailInfo.query(RetailInfo.is_display == True)
    return render_to_response('page/r_info_index.html', {'m_r_info': 'active', 'r_info': r_info_objs})
Ejemplo n.º 2
0
def r_info_index(request):
    r_info = RetailInfo.query().order(-RetailInfo.add_time)
    return render_to_response('page/admins/r_info/index.html', {'r_info': r_info})