2👍
If you use custom table classes, you need to use a RequestConfig object to properly set-up the table.
In your example, it should be enough to add
RequestConfig(request, paginate=False).configure(userTable)
RequestConfig(request, paginate=False).configure(courseTable)
RequestConfig(request, paginate=False).configure(enrollmentTable)
before adding them to payload.
Source:stackexchange.com