Contenido
CrossSiteXHRPaginator
Bases: tastypie.paginator.Paginator
tastypie.paginator.Paginator
Determines the proper maximum number of results to return.
In order of importance, it will use:
The user-requested limit from the GET parameters, if specified. The object-level limit if specified. settings.API_LIMIT_PER_PAGE if specified.
The user-requested limit from the GET parameters, if specified.
limit
The object-level limit if specified.
settings.API_LIMIT_PER_PAGE if specified.
settings.API_LIMIT_PER_PAGE
Default is 20 per page.
Determines the proper starting offset of results to return.
It attempts to use the user-provided offset from the GET parameters, if specified. Otherwise, it falls back to the object-level offset.
offset
Default is 0.