summaryrefslogtreecommitdiff
path: root/tests/sites_tests
AgeCommit message (Collapse)Author
2016-06-07[1.10.x] Fixed #26716 -- Made CurrentSiteMiddleware compatible with ↵Brett Haydon
new-style middleware. Backport of 5e3f4c2e53d9dde0fcf9f5f33f63c15c4750019f from master
2016-05-15Fixed #24075 -- Used post-migration models in contrib apps receivers.Simon Charette
Thanks Markus and Tim for the review.
2016-04-03Fixed #26446 -- Added additional tests to cover methods in the RequestSite classPiers Storey
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-11-07Fixed #25692 -- Added natural keys support to Site model.j0hnsmith
2015-06-18Fixed reverse sites_tests failures introduced in refs #24834.Tim Graham
2015-06-18Fixed #24834 -- Fixed get_current_site() when Host header contains port.Nick Pope
When the Host header contains a port, looking up the Site record fails as the host will never match the domain.
2015-05-16Fixed #24774 -- Made contrib.site's Site.domain field uniquePiotr Jakimiak
2015-03-16Fixed #24488 -- Made create_default_site() use default pk of 1.Marten Kenbeek
Fixed create_default_site() to use a default value in case settings.SITE_ID isn't set; refs #23945.
2015-02-20Fixed #24351, #24346 -- Changed the signature of allow_migrate().Loic Bistuer
The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.
2015-02-13Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' ↵Tim Graham
DATABASES is empty.
2015-02-11Moved contrib.sites tests out of contrib.Tim Graham