??????????????????? date_from ??date_to??????????????????????__range???????????????????????????????
import datetime
def filter(request):
if 'year_from' and 'month_from' and 'day_from' and
'year_to' and 'month_to' and 'day_to' in request.GET:
y = request.GET['year_from']
m = request.GET['month_from']
d = request.GET['day_from']
date_from = datetime.datetime(int(y)?? int(m)?? int(d)?? 0?? 0)
y = request.GET['year_to']
m = request.GET['month_to']
d = request.GET['day_to']
date_to = datetime.datetime(int(y)?? int(m)?? int(d)?? 0?? 0)
book_list = book.objects.filter(date__range=(date_from?? date_to))
print book_list
else:
print "error time range!"