摘要:
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 阅读全文
摘要:
如题 阅读全文