You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a look at the test suite and there are already tests against the pagination.
This will require a bit more though relating to what went wrong in the above case.
Always got such error:
'Page' object has no attribute 'id'
Request Method: GET
Request URL: http://127.0.0.1:8000/data/strategies/
Django Version: 1.7.1
Exception Type: AttributeError
Exception Value:
'Page' object has no attribute 'id'
Exception Location: /Users/bwlee/.virtualenvs/wjz/lib/python2.7/site-packages/rest_framework/fields.py in get_attribute, line 70
if comment out below lines from settings.py, can show data in api mode.
REST_FRAMEWORK = {
'PAGINATE_BY': 10,
'PAGINATE_BY_PARAM': 'page_size',
}
BTW, json format can be shown both with or without pagination settings.
Thanks!
The text was updated successfully, but these errors were encountered: