Fixed #15179 -- middlewares not applied for test client login()

Requests made with django.test.Client.login() and logout() respect
defaults defined in django.test.Client instantiation and are processed
through middleware.

Thanks to Loic for the reviews.
Fixed #21361 -- allowed access self.value() from SimpleListFilter lookup

Reviewed by Chris Medrela.
Fixed the base class note in the Date Views docs.
fixed typo in builtins.txt
Merge pull request #1943 from jantokhine/master

fixed typo in builtins.txt
Added more examples to the get_object_or_404 documentation.
Recommended setuptools in the reuseable app tutorial.

setuptools has merged with distribute.
Changed shortcuts from being a package to just being a module
Use `classmethod` as a decorator.
Fixed #21469 -- Allow set objects in Meta.unique_together.

Thanks to Tim for the review.
Fixed #21458 -- Made check_for_language more resistant to malformed input.

Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
Fixed #21472 -- Fixed inline formsets display when parent pk is 0

Thanks agale031176@gmail.com for the report.
Refs #8261 -- Fixed regression introduced by fd219fa.

ModelAdmin displayed the "View on site" link even if the Model didn't
define the `get_absolute_url()` method.
Merge pull request #1954 from loic/ticket8261

Refs #8261 -- Fixed regression introduced by fd219fa.
Fixed #21431 -- GenRel->FK list_filter regression in admin

Report, analysis and tests from stephenmcd.
Removed isinstance(RelatedObject) checks from admin.utils
Fixed #21427 -- Clearly state integer field value ranges in docs

Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.
Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.
Fixed #21476 -- Cache tests make an incorrect use of `HttpRequest`

Using `django.test.client.RequestFactory` solves the problem and cleans up all
the `get_request` mess.
Made minor optimizations to admin_ordering tests