예제 #1
0
파일: views.py 프로젝트: lite/pinche
def pinche_list():
    obj_list = Pinche.select().order_by('pub_date')
    return object_list('pinche_list.html', obj_list, "obj_list")
예제 #2
0
파일: views.py 프로젝트: jade-bot/pinche
def pinche_list():
    obj_list = Pinche.select().order_by('pub_date')
    return object_list('pinche_list.html', obj_list, "obj_list")
예제 #3
0
파일: views.py 프로젝트: lite/pinche
def city_detail(city_id):
    city = get_object_or_404(City, id=city_id)
    obj_list = Pinche.select().where(city=city).order_by('pub_date')
    return object_list('city_detail.html', obj_list, "obj_list")
예제 #4
0
파일: views.py 프로젝트: jade-bot/pinche
def city_detail(city_id):
    city = get_object_or_404(City, id=city_id)
    obj_list = Pinche.select().where(city=city).order_by('pub_date')
    return object_list('city_detail.html', obj_list, "obj_list")