2013年5月10日
摘要: context_object_name = 'studentinfo'def get_context_data(**kwargs): studentinfo = context['studentinfo'] for idx, item in enumerate(studentinfo): item.order_id = idx + 1 + (context['page_obj'].number-1) * STUDENT_PER_PAGE 阅读全文
posted @ 2013-05-10 20:34 andy071001 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 如题 阅读全文
posted @ 2013-05-10 20:02 andy071001 阅读(848) 评论(0) 推荐(0) 编辑