mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[3.2.x] Fixed a typo in docs/ref/models/fields.txt.
datetime.date.utcnow() doesn't exist, should be .today().
Backport of 88b3982af3 from main
			
			
This commit is contained in:
		
				
					committed by
					
						 Carlton Gibson
						Carlton Gibson
					
				
			
			
				
	
			
			
			
						parent
						
							dc7b495dae
						
					
				
				
					commit
					fab710d3ff
				
			| @@ -1678,7 +1678,7 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in | ||||
|     example:: | ||||
|  | ||||
|         def limit_pub_date_choices(): | ||||
|             return {'pub_date__lte': datetime.date.utcnow()} | ||||
|             return {'pub_date__lte': datetime.date.today()} | ||||
|  | ||||
|         limit_choices_to = limit_pub_date_choices | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user