Natalia 
							
						 
					 
					
						
						
							
						
						a7aaba0f85 
					 
					
						
						
							
							Removed empty sections from 5.0 release notes.  
						
						
						
						
					 
					
						2023-09-18 09:51:35 -03:00 
						 
				 
			
				
					
						
							
							
								Natalia 
							
						 
					 
					
						
						
							
						
						3eb7051161 
					 
					
						
						
							
							Updated man page for Django 5.0 alpha.  
						
						
						
						
					 
					
						2023-09-18 09:25:34 -03:00 
						 
				 
			
				
					
						
							
							
								Clément Escolano 
							
						 
					 
					
						
						
							
						
						cac94dd8aa 
					 
					
						
						
							
							Fixed   #33651  -- Added support for prefetching GenericForeignKey.  
						
						... 
						
						
						
						Co-authored-by: revanthgss <revanthgss@almabase.com >
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com > 
						
						
					 
					
						2023-09-18 13:23:21 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						190874eadd 
					 
					
						
						
							
							Fixed   #34560  -- Updated admin's jQuery to 3.7.1.  
						
						
						
						
					 
					
						2023-09-18 08:54:44 +02:00 
						 
				 
			
				
					
						
							
							
								Ryanwalker277 
							
						 
					 
					
						
						
							
						
						225328efd9 
					 
					
						
						
							
							Fixed   #31558  -- Added support for boolean attribute on properties in ModelAdmin.list_display.  
						
						
						
						
					 
					
						2023-09-16 20:54:26 +02:00 
						 
				 
			
				
					
						
							
							
								Paolo Melchiorre 
							
						 
					 
					
						
						
							
						
						2f1ab16be5 
					 
					
						
						
							
							Fixed   #34842  -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.  
						
						
						
						
					 
					
						2023-09-16 20:13:02 +02:00 
						 
				 
			
				
					
						
							
							
								therealrinku 
							
						 
					 
					
						
						
							
						
						aebedb7bd1 
					 
					
						
						
							
							Fixed typo in docs/howto/custom-file-storage.txt.  
						
						
						
						
					 
					
						2023-09-16 07:03:10 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						88b5b7b8e5 
					 
					
						
						
							
							Corrected QuerySet.prefetch_related() note about GenericRelation().  
						
						... 
						
						
						
						GenericRelation is a reverse generic relationship so it's always
homogeneous. Mentioning this as a restriction is confusing. 
						
						
					 
					
						2023-09-16 06:57:38 +02:00 
						 
				 
			
				
					
						
							
							
								Sarah Abderemane 
							
						 
					 
					
						
						
							
						
						814e7bc220 
					 
					
						
						
							
							Fixed   #34832  -- Made admin's header content render in <header> tag.  
						
						... 
						
						
						
						Header tag was changed to <header> get the landmark banner for
accessibility. 
						
						
					 
					
						2023-09-15 05:36:43 +02:00 
						 
				 
			
				
					
						
							
							
								Paolo Melchiorre 
							
						 
					 
					
						
						
							
						
						68d769e691 
					 
					
						
						
							
							Fixed   #34838  -- Corrected output_field of resolved columns for GeneratedFields.  
						
						... 
						
						
						
						Thanks Simon Charette for the implementation idea. 
						
						
					 
					
						2023-09-14 21:17:12 +02:00 
						 
				 
			
				
					
						
							
							
								Lemuel Sta Ana 
							
						 
					 
					
						
						
							
						
						969ecb8236 
					 
					
						
						
							
							Fixed   #34834  -- Added role="search" to the admin changelist search form.  
						
						
						
						
					 
					
						2023-09-14 20:35:48 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						e2a3a896cf 
					 
					
						
						
							
							Refs  #15619  -- Removed deprecated annotation about logging out via GET requests.  
						
						... 
						
						
						
						Follow up to 6c57c08ae5 
						
						
					 
					
						2023-09-14 19:49:06 +02:00 
						 
				 
			
				
					
						
							
							
								Natalia 
							
						 
					 
					
						
						
							
						
						691f70c477 
					 
					
						
						
							
							Fixed   #24561  -- Added support for callables on model fields' choices.  
						
						
						
						
					 
					
						2023-09-14 10:15:33 -03:00 
						 
				 
			
				
					
						
							
							
								Michele Mazzucchi 
							
						 
					 
					
						
						
							
						
						5bfb3cbf49 
					 
					
						
						
							
							Doc'd  HttpResponse.cookies.  
						
						
						
						
					 
					
						2023-09-14 11:21:47 +02:00 
						 
				 
			
				
					
						
							
							
								Sarah Abderemane 
							
						 
					 
					
						
						
							
						
						91e617c743 
					 
					
						
						
							
							Fixed   #34833  -- Made admin's main content render in <main> tag.  
						
						
						
						
					 
					
						2023-09-14 05:41:31 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						f92e68c30a 
					 
					
						
						
							
							Fixed   #34822  -- Added support for serializing functions decorated with functools.lru_cache in migrations.  
						
						... 
						
						
						
						`@functools.cache` and `@functools.lru_cache` return an object of type
`functools._lru_cache_wrapper` which prevented the migrations serializer from
working. Simply using the existing `FunctionTypeSerializer` for this additional
type works as expected. 
						
						
					 
					
						2023-09-13 15:57:18 -03:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						c131949e3e 
					 
					
						
						
							
							Refs  #34822  -- Added tests for serializing decorated functions in migrations.  
						
						... 
						
						
						
						Functions decorated with a decorator that is properly wrapped, e.g. by
using `@functools.wraps`, are already supported. 
						
						
					 
					
						2023-09-13 15:39:56 -03:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						0e540fca13 
					 
					
						
						
							
							Corrected logger in CsrfViewMiddlewareTestMixin.test_ensures_csrf_cookie_no_logging().  
						
						... 
						
						
						
						Logger was changed in 55fec16aaf 
						
						
					 
					
						2023-09-13 13:49:01 +02:00 
						 
				 
			
				
					
						
							
							
								Ben Lomax 
							
						 
					 
					
						
						
							
						
						74f7deec9e 
					 
					
						
						
							
							Refs  #31949  -- Made make_middleware_decorator to work with async functions.  
						
						
						
						
					 
					
						2023-09-13 11:41:01 +02:00 
						 
				 
			
				
					
						
							
							
								Ben Lomax 
							
						 
					 
					
						
						
							
						
						059cb0dbc9 
					 
					
						
						
							
							Added more tests for decorators.  
						
						
						
						
					 
					
						2023-09-13 10:16:01 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						fe19b33e2f 
					 
					
						
						
							
							Modernized enumeration helpers on Python 3.11+.  
						
						... 
						
						
						
						- use @enum.property
https://docs.python.org/3/library/enum.html#enum.property 
- use @enum.nonmember
Using @property on an enum class does not yield the expected result.
do_not_call_in_templates attribute works because a @property instance
is truthy. We can make this a literal True value as expected by using
@enum.nonmember in Python 3.11+.
https://docs.python.org/3/library/enum.html#enum.nonmember 
- used enum.IntEnum/StrEnum
Python 3.11+ has ReprEnum which uses int.__str__() and str.__str__()
for __str__() in the `IntEnum` and `StrEnum` subclasses. We can emulate
that for Python < 3.11.
https://docs.python.org/3/library/enum.html#enum.ReprEnum 
https://docs.python.org/3/library/enum.html#enum.IntEnum 
https://docs.python.org/3/library/enum.html#enum.StrEnum  
						
						
					 
					
						2023-09-13 08:30:21 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						170b0a47b0 
					 
					
						
						
							
							Refs  #34233  -- Used @staticmethod with TextChoices._generate_next_value_().  
						
						... 
						
						
						
						Now that Python 3.10 is the minimum supported version, we can decorate
_generate_next_value_() with @staticmethod. It wasn't possible before
as Python < 3.10 does not support calling static methods direct from
the class body.
https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_  
						
						
					 
					
						2023-09-13 08:22:45 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						e15174983a 
					 
					
						
						
							
							Renamed ChoicesMeta to ChoicesType.  
						
						... 
						
						
						
						This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed
EnumMeta to EnumType. While the former is still available as an alias
of the latter for now, let's prefer the canonical name for this.
Check out https://docs.python.org/3/library/enum.html#enum.EnumType  
						
						
					 
					
						2023-09-12 11:51:01 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						8aa8346466 
					 
					
						
						
							
							Removed ChoicesMeta.__contains__() for Python 3.12+.  
						
						... 
						
						
						
						In Python 3.12 it is possible to check containment using member values,
not just the members themselves.
https://docs.python.org/3/library/enum.html#enum.EnumType.__contains__  
						
						
					 
					
						2023-09-12 10:17:47 +02:00 
						 
				 
			
				
					
						
							
							
								Sam Toyer 
							
						 
					 
					
						
						
							
						
						64cea1e48f 
					 
					
						
						
							
							Fixed   #34752  -- Fixed handling ASGI http.disconnect for streaming responses.  
						
						
						
						
					 
					
						2023-09-11 19:53:21 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						a7c73b944f 
					 
					
						
						
							
							Fixed   #34821  -- Prevented DEFAULT_FILE_STORAGE/STATICFILES_STORAGE settings from mutating the main STORAGES.  
						
						... 
						
						
						
						Regression in 6b965c6000 
						
						
					 
					
						2023-09-11 13:04:32 +02:00 
						 
				 
			
				
					
						
							
							
								donghao 
							
						 
					 
					
						
						
							
						
						938170008e 
					 
					
						
						
							
							Fixed   #34824  -- Prevented unnecessary AlterField when ForeignObject.from_fields/to_fields is not a tuple.  
						
						
						
						
					 
					
						2023-09-11 08:46:43 +02:00 
						 
				 
			
				
					
						
							
							
								Yves Weissig 
							
						 
					 
					
						
						
							
						
						369b498219 
					 
					
						
						
							
							Fixed   #34642  -- Added File.open() support for *args and **kwargs.  
						
						
						
						
					 
					
						2023-09-11 06:07:47 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						ecb6085f6f 
					 
					
						
						
							
							Bumped versions in pre-commit and npm configurations.  
						
						
						
						
					 
					
						2023-09-10 10:07:22 +02:00 
						 
				 
			
				
					
						
							
							
								donghao 
							
						 
					 
					
						
						
							
						
						71820c9f91 
					 
					
						
						
							
							Fixed   #34820  -- Fixed migrations crash when changing a ForeignObject field.  
						
						
						
						
					 
					
						2023-09-09 22:15:14 +02:00 
						 
				 
			
				
					
						
							
							
								Oguzhan Akan 
							
						 
					 
					
						
						
							
						
						e41f9f9450 
					 
					
						
						
							
							Fixed   #34816  -- Fixed GenericForeignKey crash when checking cache for primary keys with different types.  
						
						
						
						
					 
					
						2023-09-08 08:47:11 +02:00 
						 
				 
			
				
					
						
							
							
								Jacob Walls 
							
						 
					 
					
						
						
							
						
						1ab2cf7994 
					 
					
						
						
							
							Fixed   #34810  -- Measured test coverage on django-admin commands.  
						
						
						
						
					 
					
						2023-09-07 15:47:26 -03:00 
						 
				 
			
				
					
						
							
							
								Maxime Toussaint 
							
						 
					 
					
						
						
							
						
						254df3a3bb 
					 
					
						
						
							
							Fixed   #34791  -- Fixed incorrect Prefetch()'s cache for singly related objects.  
						
						... 
						
						
						
						Changed the cache name used for singly related objects to be the
to_attr parameter passed to a Prefetch object. This fixes issues with
checking if values have already been fetched in cases where the Field
already has some prefetched value, but not for the same model attr. 
						
						
					 
					
						2023-09-07 12:56:08 +02:00 
						 
				 
			
				
					
						
							
							
								Jeremy Nauta 
							
						 
					 
					
						
						
							
						
						f333e3513e 
					 
					
						
						
							
							Fixed   #31300  -- Added GeneratedField model field.  
						
						... 
						
						
						
						Thanks Adam Johnson and Paolo Melchiorre for reviews.
Co-Authored-By: Lily Foote <code@lilyf.org >
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com > 
						
						
					 
					
						2023-09-07 06:19:08 +02:00 
						 
				 
			
				
					
						
							
							
								François Freitag 
							
						 
					 
					
						
						
							
						
						cafe7266ee 
					 
					
						
						
							
							Fixed   #34730  -- Added django.contrib.messages.test.MessagesTestMixin.assertMessages().  
						
						
						
						
					 
					
						2023-09-05 11:55:37 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						4f0c0e6fa1 
					 
					
						
						
							
							Bumped checkout version in Github actions configuration.  
						
						
						
						
					 
					
						2023-09-05 10:52:17 +02:00 
						 
				 
			
				
					
						
							
							
								Jacob Walls 
							
						 
					 
					
						
						
							
						
						6c6606aa01 
					 
					
						
						
							
							Refs  #34233  -- Bumped minimum supported version of docutils to 0.19.  
						
						
						
						
					 
					
						2023-09-04 22:30:45 +02:00 
						 
				 
			
				
					
						
							
							
								tell-k 
							
						 
					 
					
						
						
							
						
						dc89380c8a 
					 
					
						
						
							
							Added tell-k to AUTHORS.  
						
						
						
						
					 
					
						2023-09-04 19:50:55 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						26a4ac7736 
					 
					
						
						
							
							Fixed   #34814  -- Confirmed support for PostGIS 3.4.  
						
						
						
						
					 
					
						2023-09-04 14:58:34 +02:00 
						 
				 
			
				
					
						
							
							
								Nick Pope 
							
						 
					 
					
						
						
							
						
						8c8cbe66fa 
					 
					
						
						
							
							Refs  #31262  -- Renamed ChoiceIterator to BaseChoiceIterator.  
						
						... 
						
						
						
						Some third-party applications, e.g. `django-filter`, already define
their own `ChoiceIterator`, so renaming this `BaseChoiceIterator` will
be a better fit and avoid any potential confusion.
See https://github.com/carltongibson/django-filter/pull/1607 . 
						
						
					 
					
						2023-09-04 13:56:50 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						a534835c7b 
					 
					
						
						
							
							Added stub release notes for 4.2.6.  
						
						
						
						
					 
					
						2023-09-04 13:22:22 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						8a98768868 
					 
					
						
						
							
							Added CVE-2023-41164 to security archive.  
						
						
						
						
					 
					
						2023-09-04 13:09:48 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						3f41d6d629 
					 
					
						
						
							
							Fixed CVE-2023-41164 -- Fixed potential DoS in django.utils.encoding.uri_to_iri().  
						
						... 
						
						
						
						Thanks MProgrammer (https://hackerone.com/mprogrammer ) for the report.
Co-authored-by: nessita <124304+nessita@users.noreply.github.com > 
						
						
					 
					
						2023-09-04 11:58:37 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						048d75aeb1 
					 
					
						
						
							
							Refs  #34768  -- Ignored lack of just_fix_windows_console() for colorama < 0.4.6.  
						
						
						
						
					 
					
						2023-09-03 10:11:15 +02:00 
						 
				 
			
				
					
						
							
							
								Jacob Walls 
							
						 
					 
					
						
						
							
						
						bcd80de8b5 
					 
					
						
						
							
							Fixed   #34778  -- Avoided importing modules in startapp/startproject.  
						
						
						
						
					 
					
						2023-09-01 13:24:05 +02:00 
						 
				 
			
				
					
						
							
							
								Sulabh Katila 
							
						 
					 
					
						
						
							
						
						9a9620dda6 
					 
					
						
						
							
							Fixed   #34768  -- Avoided initializing colorama on non-Windows platforms.  
						
						
						
						
					 
					
						2023-09-01 11:26:29 +02:00 
						 
				 
			
				
					
						
							
							
								willzhao 
							
						 
					 
					
						
						
							
						
						9cc0d7f7f8 
					 
					
						
						
							
							Fixed   #34803  -- Fixed queryset crash when filtering againts deeply nested OuterRef annotations.  
						
						... 
						
						
						
						Thanks Pierre-Nicolas Rigal for the report.
Regression in c67ea79aa9 
						
						
					 
					
						2023-09-01 10:44:20 +02:00 
						 
				 
			
				
					
						
							
							
								nessita 
							
						 
					 
					
						
						
							
						
						9c68792843 
					 
					
						
						
							
							Fixed   #34807  -- Avoided circular import between forms, models, and utils' choices.  
						
						... 
						
						
						
						Thanks Collin Anderson for the report.
Regression in 500e01073a 
						
						
					 
					
						2023-09-01 05:44:38 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						c74a6fad54 
					 
					
						
						
							
							Refs  #32355  -- Removed unnecessary getattr() call.  
						
						... 
						
						
						
						options.test_name_patterns is always defined.
Follow up to ec0ff40631 
						
						
					 
					
						2023-08-31 10:27:32 +02:00 
						 
				 
			
				
					
						
							
							
								Bruno Alla 
							
						 
					 
					
						
						
							
						
						4c4536f744 
					 
					
						
						
							
							Refs  #34712  -- Added system check for staticfiles storage in STORAGES setting.  
						
						... 
						
						
						
						Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com >
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com > 
						
						
					 
					
						2023-08-31 08:21:44 +02:00