def index(request): crud_helper = CRUDHelper(Department, request.GET) departments = crud_helper.get_list() total_count = crud_helper.get_total() return render(request, 'university/department/index.html', { 'departments': departments, 'total_count': total_count })
def index(request): crud_helper = CRUDHelper(Student, request.GET) students = crud_helper.get_list() total_count = crud_helper.get_total() return render(request, 'university/student/index.html', { 'students': students, 'total_count': total_count })