| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-19 | Fixed #37024 -- Made SITE_ID system check validation use Site._meta.pk. | Tim Graham | |
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2023-12-31 | Used addCleanup() in tests where appropriate. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-07-27 | Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments. | David Smith | |
| This also removes unnecessary comments with the previous spelling. AP Stylebook has a short entry to advise the preferred spelling for "en-us". "Afterwards" is preferred in British English. | |||
| 2020-07-24 | Fixed #31802 -- Added system check for non-integer SITE_ID. | Parth Verma | |
| 2020-02-14 | Removed redundant MiddlewareTest.test_old_style_request() test. | Claude Paroz | |
| CurrentSiteMiddleware.process_request() is already covered by MiddlewareTest.test_request(). | |||
| 2019-12-27 | Fixed #31121 -- Cleared Site cache in SitesFrameworkTests. | Claude Paroz | |
| Thanks Matthijs Kooijman for the report and analysis. | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-11-27 | Adjusted code style of a few test data setup methods. | Simon Charette | |
| Thanks Mariusz for suggesting it. | |||
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2017-09-28 | Added tests for RequestSite.__init__() and __str__(). | Mads Jensen | |
| 2017-09-28 | Added a separate test class for RequestSite. | Tim Graham | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-29 | Fixed #27181 -- Allowed contrib.sites to match domains with trailing ".". | Anton Samarchyan | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-06-20 | Refs #26666 -- Added ALLOWED_HOSTS validation when running tests. | Tobias McNulty | |
| Also used ALLOWED_HOSTS to check for external hosts in assertRedirects(). | |||
| 2016-06-07 | Fixed #26716 -- Made CurrentSiteMiddleware compatible with new-style middleware. | Brett Haydon | |
| 2016-05-15 | Fixed #24075 -- Used post-migration models in contrib apps receivers. | Simon Charette | |
| Thanks Markus and Tim for the review. | |||
| 2016-04-03 | Fixed #26446 -- Added additional tests to cover methods in the RequestSite class | Piers Storey | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-11-07 | Fixed #25692 -- Added natural keys support to Site model. | j0hnsmith | |
| 2015-06-18 | Fixed reverse sites_tests failures introduced in refs #24834. | Tim Graham | |
| 2015-06-18 | Fixed #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-16 | Fixed #24774 -- Made contrib.site's Site.domain field unique | Piotr Jakimiak | |
| 2015-03-16 | Fixed #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-20 | Fixed #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-13 | Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' ↵ | Tim Graham | |
| DATABASES is empty. | |||
| 2015-02-11 | Moved contrib.sites tests out of contrib. | Tim Graham | |
