https://github.com/django/django

sort by:
Revision Author Date Message Commit Date
ac6410e [4.1.x] Bumped version for 4.1 alpha 1 release. 17 May 2022, 13:05:44 UTC
fad2e59 [4.1.x] Refs #33379 -- Fixed minimum supported version of MariaDB. Backport of 2cec020f5bc462954d902bdad1a5955852cecff6 from main 17 May 2022, 13:00:12 UTC
d1f1a01 [4.1.x] Updated source translation catalogs. 17 May 2022, 12:13:35 UTC
2a5cfe8 [4.1.x] Bumped django_next_version in docs config. 17 May 2022, 10:12:54 UTC
5325a63 Updated man page for Django 4.1 alpha. 17 May 2022, 09:21:08 UTC
d6e3756 Removed empty sections from 4.1 release notes. 17 May 2022, 09:21:08 UTC
d126eba Refs #32339 -- Deprecated default.html form template. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> 17 May 2022, 09:16:54 UTC
6af8673 Update docs/releases/4.1.txt Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> 17 May 2022, 08:50:09 UTC
7f3cfaa Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs. Moved the functionality of URLResolver._is_callback(), URLResolver._callback_strs, URLPattern.lookup_str() to django.contrib.admindocs. 17 May 2022, 08:50:09 UTC
2a5d2ee Fixed #33683 -- Document HttpResponseBase and allow import from django.http 17 May 2022, 07:51:16 UTC
97f124f Refs #27064 -- Made migrations generate RenameIndex operations when moving indexes from index_together to Meta.indexes. 17 May 2022, 05:21:36 UTC
a098cde Refs #27064 -- Refactored out MigrationAutodetector.create_renamed_fields(). 17 May 2022, 04:20:01 UTC
c6cec3c Refs #27064 -- Made migrations generate RenameIndex operations when renaming Meta.indexes. 16 May 2022, 15:46:24 UTC
11310e9 Fixed #33710 -- Made RenameIndex operation a noop when the old and new name match. 16 May 2022, 08:36:56 UTC
6474801 Refs #33685 -- Doc'd that using PostgreSQL's service names for testing purposes is not supported. 16 May 2022, 07:32:40 UTC
76af861 Fixed #27550 -- Allowed GEOSGeometry.normalize() to return a normalized clone. 16 May 2022, 04:46:53 UTC
d27e6b2 Fixed #33681 -- Made Redis client pass CACHES["OPTIONS"] to a connection pool. Thanks Ben Picolo for the report. 16 May 2022, 04:17:40 UTC
d367704 Added backward compatibility test for ConnectionHandler.databases property. The ConnectionHandler.databases property is no longer used within Django, but it is maintained for backward compatibility with 3rd party packages that have used this private API in the past. 13 May 2022, 10:01:07 UTC
c112f83 Fixed #33704 -- Updated postgres_tests migrations. 13 May 2022, 09:23:21 UTC
19dc3f0 Fixed typo in Query.clone()'s docstring. 13 May 2022, 04:56:20 UTC
eacd497 Refs #27064 -- Added RenameIndex migration operation. 12 May 2022, 18:44:03 UTC
20e65a3 Made closing in connection handlers more DRY. 12 May 2022, 13:13:51 UTC
3a82b5f Fixed #32559 -- Added 'step_size’ to numeric form fields. Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at> 12 May 2022, 12:16:52 UTC
68da6b3 Fixed #33543 -- Deprecated passing nulls_first/nulls_last=False to OrderBy and Expression.asc()/desc(). Thanks Allen Jonathan David for the initial patch. 12 May 2022, 09:30:03 UTC
2798c93 Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering contains expressions. Thanks Simon Charette for the review. 12 May 2022, 05:19:16 UTC
34e2148 Refs #33173 -- Removed use of deprecated cgi module. https://peps.python.org/pep-0594/#cgi 11 May 2022, 12:06:31 UTC
02dbf16 Fixed #33691 -- Deprecated django.contrib.auth.hashers.CryptPasswordHasher. 11 May 2022, 07:13:45 UTC
262fde9 Fixed #33622 -- Allowed customizing error messages for invalid number of forms. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> 10 May 2022, 11:42:31 UTC
6671058 Fixed #30581 -- Added support for Meta.constraints validation. Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. 10 May 2022, 09:22:23 UTC
441103a Refs #33173, Refs #30451 -- Fixed ResourceWarning from unclosed body files in ASGI handler on Python 3.11+. 10 May 2022, 07:57:28 UTC
439cd73 Refs #33173 -- Fixed test_dateparse tests on Python 3.11+. date/datetime/time.fromisoformat() support any valid ISO 8601 format in Python 3.11+, see https://github.com/python/cpython/issues/80010. 09 May 2022, 08:38:11 UTC
21d8ea4 Corrected extract_views_from_urlpatterns()'s docstring. 06 May 2022, 07:50:46 UTC
dddc8bc Fixed #33679 -- Fixed the last inline's id in admin for users without add permissions. 06 May 2022, 06:36:04 UTC
faab9e6 Fixed #33680 -- Corrected example of customizing model loading in docs. 06 May 2022, 04:42:03 UTC
ec56593 Fixed #32339 -- Added div.html form template. 05 May 2022, 12:32:43 UTC
27b07a3 Refs #30581 -- Moved CheckConstraint tests for conditional expressions to migrations.test_operations. This allows avoiding warning in tests about using RawSQL in CheckConstraints. 05 May 2022, 04:44:34 UTC
c5cc750 Corrected example in Polygon docstring. 04 May 2022, 15:31:42 UTC
8f04473 Fixed #25105 -- Checked deferred constraints before updating rows on PostgreSQL. 04 May 2022, 10:15:00 UTC
fde946d Refs #32339 -- Restructured outputting HTML form docs. In the topic doc, promoted the Reusable form templates section. In the reference, re-grouped and promoted the default __str__() rendering path, and then gathered the various as_*() helpers subsequently. Thanks to David Smith for review. 04 May 2022, 09:52:48 UTC
5d91dc8 Refs #30581 -- Added Q.check() hook. 04 May 2022, 06:47:52 UTC
1109e66 Refs #33646 -- Reduced sync_to_async hops on async QuerySet iteration. Until we add support for truly asynchronous database backends it's actually detrimental to have complete set retrieval require multiple hops between sync and async emulated contexts via asgiref. By defaulting to sending the whole sync _fetch_all() to the current context thread pool we reduce unncessary work when dealing with large result sets since the queryset cannot be iterated anyway before all results are retrieved and cached. 04 May 2022, 06:31:59 UTC
37470bb Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4. 04 May 2022, 04:28:51 UTC
9d04711 Refs #30581 -- Added Q.flatten(). 03 May 2022, 13:31:53 UTC
df22566 Fixed #33658 -- Doc'd ModelChoiceField.blank attribute. Thanks Mariusz Felisiak for reviewing. 03 May 2022, 12:23:00 UTC
aa8b927 Fixed CoveringIndexTests.test_covering_partial_index() when DEFAULT_INDEX_TABLESPACE is set. 03 May 2022, 12:22:34 UTC
3b898ea Fixed #29854 -- Made _all_related_fields() return deterministically ordered fields. Thanks to Rick Yang and Baptiste Mispelon for the investigation. 03 May 2022, 08:01:45 UTC
c5fd5e3 Updated release date for Django 4.0.5. 03 May 2022, 07:18:42 UTC
f74d4ca Fixed #33667 -- Used --header-branding-color for branding headers in admin. 03 May 2022, 06:29:51 UTC
271a8e7 Refs #33646 -- Made QuerySet.raw() async-compatible. 02 May 2022, 08:52:33 UTC
7792617 Refs #33646 -- Added RawModelIterable. 02 May 2022, 08:52:33 UTC
aca9bb2 Fixed #33413 -- Made migrations propage collations to related fields. 02 May 2022, 06:13:38 UTC
694cf45 Removed 'tests' path prefix in a couple tests. 02 May 2022, 04:21:18 UTC
1b3a949 Refs #33671 -- Fixed migrations crash when adding collation to a primary key on Oracle. 29 April 2022, 19:43:55 UTC
f0ba799 Refs #30426 -- Updated XFrameOptionsMiddleware docstring. Follow up to 05d0eca635853564c57e639ac5590674a7de2ed6. 29 April 2022, 19:17:27 UTC
b34238a Fixed #33670 -- Fixed altering primary key on SQLite. 29 April 2022, 18:16:34 UTC
562e3bc Refs #23435 -- Added note about GenericForeignKey indexes to docs. 29 April 2022, 05:48:37 UTC
87da283 Refs #33413 -- Added collation to CharField/TextField's db_parameters. 29 April 2022, 04:30:15 UTC
aa28c39 Fixed #33661 -- Corrected Catalan date-format localization. Changed DATE_FORMAT, DATETIME_FORMAT and MONTH_DAY_FORMAT to use E placeholder (Month, locale specific alternative) to handle both “de gener” and contracted “d’abril” cases. Thanks to Ferran Jovell for review. 28 April 2022, 13:12:15 UTC
ce586ed Removed hyphen from pre-/re- prefixes. "prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening 28 April 2022, 08:44:14 UTC
33e89de Changed "stdlib" to "Standard Library" in docs/releases/1.9.txt. 28 April 2022, 08:44:14 UTC
2ed6f20 Added links to Solr and Haystack in docs. 28 April 2022, 08:44:14 UTC
51874dd Added backticks to code literals in various docs. 28 April 2022, 08:44:14 UTC
15b888b Changed "refactorings" to "refactoring" in docs/releases/1.0.txt. 28 April 2022, 08:44:09 UTC
1c2bf80 Changed "ie." to "i.e." in docs. 28 April 2022, 08:37:06 UTC
476d4d5 Refs #32339 -- Allowed renderer to specify default form and formset templates. Co-authored-by: David Smith <smithdc@gmail.com> 27 April 2022, 08:21:04 UTC
8320964 Refs #32339 -- Added base form renderer to docs. 27 April 2022, 08:21:04 UTC
58b27e0 Fixed #33646 -- Added async-compatible interface to QuerySet. Thanks Simon Charette for reviews. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> 26 April 2022, 18:25:23 UTC
27aa703 Fixed #27471 -- Made admin's filter choices collapsable. 26 April 2022, 06:44:31 UTC
37602e4 Fixed #33656 -- Fixed MultiWidget crash when compressed value is a tuple. 26 April 2022, 05:06:26 UTC
4282fd4 Fixed #33655 -- Removed unnecessary constant from GROUP BY clause for QuerySet.exists(). 26 April 2022, 04:19:18 UTC
dcebc5d Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable. Refs #32728. 25 April 2022, 09:00:50 UTC
ed0a2c3 Removed unnecessary variable in Index.create_sql(). Unnecessary since fdfb3086fcba1b737ec09676ab4bb95105f3371e. 22 April 2022, 17:07:56 UTC
0de89b6 Refs #31223 -- Added __class_getitem__() to ForeignKey. 22 April 2022, 12:13:12 UTC
eeb0bb6 Refs #27674 --- Deprecated django.contrib.gis.admin.OpenLayersWidget. 22 April 2022, 09:36:27 UTC
6f453cd Fixed #33509 -- Added "(no-op)" to sqlmigrate output for operations without SQL statement. 21 April 2022, 10:25:16 UTC
f15f7d3 Refs #33509 -- Made sqlmigrate tests stricter and improved isolation. 21 April 2022, 10:21:46 UTC
cd4da34 Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ValueError. This aligns to the behaviour of OneToOneField and ForeignKey fields. Thanks Jonny Park for the initial patch. 21 April 2022, 08:12:28 UTC
1ed8ca4 Refs #13085 -- Removed unnecessary ManyToManyFields from generic_relations_regress test models. 21 April 2022, 07:59:09 UTC
6f311c7 Refs #33508 -- Corrected note about MySQL/MariaDB support of index ordering. 20 April 2022, 15:45:23 UTC
6b53114 Refs #33646 -- Added example for async cross-thread connection access. 20 April 2022, 12:07:14 UTC
5dfa6fc Refactored out RedirectURLMixin.get_success_url(). This also adds a default implementation of get_default_redirect_url(). 20 April 2022, 08:04:29 UTC
04bc256 Simplified LogoutView.get_success_url(). This preserves the behavior of redirecting to the logout URL without query string parameters when an insecure ?next=... parameter is given. It changes the behavior of a POST to the logout URL, as shown by the test that is changed. Currently, this results in a GET to the logout URL. However, such GET requests are deprecated. This change would be necessary in Django 5.0 anyway. This commit merely anticipates it. 20 April 2022, 08:04:29 UTC
5fcd9b8 Unified LoginView/LogoutView.get_default_redirect_url() methods. This might change the behavior when self.next_page == "". However, resolve_url(self.next_page) would almost certainly fail in that case. It is technically possible to define a logout URLpattern whose name is "": path('logout/', LogoutView.as_view(), name=''), and then to refer to this pattern with next_page = "". However this feels like a pathological case, so we decided not to handle it. Most checks on next_page, LOGIN_REDIRECT_URL, and LOGOUT_REDIRECT_URL are performed with boolean evaluation rather than comparison with None. That's why we standardizing that way. 20 April 2022, 08:04:29 UTC
5b8699e Renamed LogoutView.get_next_page() to get_success_url(). This aligns it with LoginView. Also, it removes confusion with the get_next_page() method of paginators. get_next_page() was a private API, therefore this refactoring is allowed. 20 April 2022, 08:04:29 UTC
12576bd Refactored out RedirectURLMixin.get_redirect_url(). This also renames SuccessURLAllowedHostsMixin to RedirectURLMixin. This doesn't change the behavior of LogoutView.get_next_page() because next_page == "" implies url_is_safe == False before the refactoring. 20 April 2022, 08:04:29 UTC
420d13e Fixed #33654 -- Added localdate to utils.timezone.__all__. 20 April 2022, 07:59:48 UTC
c8c6a51 Added TiDB to list of third-party DB backends. 20 April 2022, 06:11:17 UTC
470708f Updated note about ListView pagination example in CBV docs. Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88. 19 April 2022, 19:38:49 UTC
7d26d5f Fixed #33644 -- Corrected FAQ about displaying ManyToManyField in list_filter. 19 April 2022, 16:56:04 UTC
bf7c51a Fixed #33639 -- Enabled cached template loader in development. 19 April 2022, 10:13:27 UTC
f4f2afe Refs #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL when format is uppercased. Follow up to aba9c2de669dcc0278c7ffde7981be91801be00b. 19 April 2022, 06:24:24 UTC
903702d Removed unnecessary default argument from GET.get() call in LoginView.get_redirect_url(). The default argument is unnecessary because url_has_allowed_host_and_scheme() returns False when its first argument is "" or None, so get_redirect_url() still returns "". This also aligns LoginView.get_redirect_url() and LogoutView.get_next_page(). 19 April 2022, 04:25:38 UTC
5591a72 Fixed #33648 -- Prevented extra redirect in LogoutView on invalid next page when LOGOUT_REDIRECT_URL is set. 18 April 2022, 14:33:10 UTC
fe7cb34 Refs #33328 -- Corrected JS check for event.detail presence in docs. 18 April 2022, 13:19:58 UTC
8e89dfe Fixed various tests on MySQL with MyISAM storage engine. 18 April 2022, 05:05:52 UTC
331a460 Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine. 18 April 2022, 05:05:52 UTC
e126700 Fixed #33643 -- Fixed inspectdb crash on functional unique constraints on Oracle. 16 April 2022, 13:29:51 UTC
a1e4e86 Fixed #33607 -- Made PostgresIndex.create_sql() respect the "using" argument. 15 April 2022, 20:00:28 UTC
c72f6f3 Fixed #11803 -- Allowed admin select widgets to display new related objects. Adjusted admin javascript to add newly created related objects to already loaded select widgets. In this version, applies only where limit_choices_to is not set. 15 April 2022, 05:46:37 UTC
deedf5b Refs #31169 -- Added release note for parallel test running changes. 14 April 2022, 10:38:31 UTC
back to top