Restore body block to base template.
Merge pull request #1810 from danielroseman/restore-body-block

Restore body block to base template.
Regression for #1810: Test login view renders
Version 2.4.1
Comform to flake8
Merge pull request #1816 from carltongibson/regression-login-template

Regression for #1810: Test login view renders
Correct testing documentation details.
Merge pull request #1817 from tituomin/testing-requirements-documentation

Correct testing documentation details.
Remove Login Dropdown when Auth Views are not registered.

Fixes #1738
Merge branch 'master' of github.com:tomchristie/django-rest-framework into login-dropdown
Fix docstring
Fix imports
Moved li tags inside `optional_login`

as per https://github.com/tomchristie/django-rest-framework/pull/1820#discussion_r16987993
Add custom pagination test that covers case with custom object serializer class
Use explicit many=True for object_serializer instantiation in PaginationSerializer and add catch dummy 'many' kwarg on DefaultObjectSerializer
remove rogue print
Merge pull request #1826 from swistakm/fix/explicit-many-in-pagination-serializer-results

Use explicit `many=True` in PaginationSerializer on `object_serializer` instantiation
Version 2.4.2
Alter CSRF exemption implementation

The previous implementation of decorating `APIView.dispach` with the
`csrf_exempt` decorator allowed for an easy-to-make mistake where
someone could override the `dispatch` method on a view and inadvertantly
remove the csrf exemption of their api view.

By moving the decoration of the view into the `as_view` logic, it
becomes much more difficult to make this mistake.
Test with released Django 1.7