mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[5.1.x] Made cosmetic edits to code snippets reformatted with blacken-docs.
Backport of 0f694ce2eb from main.
			
			
This commit is contained in:
		
				
					committed by
					
						 Natalia
						Natalia
					
				
			
			
				
	
			
			
			
						parent
						
							501e32a7f5
						
					
				
				
					commit
					f0d592ed34
				
			| @@ -370,7 +370,7 @@ example:: | |||||||
|                 # Only do something if both fields are valid so far. |                 # Only do something if both fields are valid so far. | ||||||
|                 if "help" not in subject: |                 if "help" not in subject: | ||||||
|                     raise ValidationError( |                     raise ValidationError( | ||||||
|                         "Did not send for 'help' in the subject despite " "CC'ing yourself." |                         "Did not send for 'help' in the subject despite CC'ing yourself." | ||||||
|                     ) |                     ) | ||||||
|  |  | ||||||
| In this code, if the validation error is raised, the form will display an | In this code, if the validation error is raised, the form will display an | ||||||
|   | |||||||
| @@ -380,7 +380,7 @@ Then, ``full_clean()`` will check unique constraints on your model. | |||||||
|                         raise ValidationError( |                         raise ValidationError( | ||||||
|                             { |                             { | ||||||
|                                 "status": _( |                                 "status": _( | ||||||
|                                     "Set status to draft if there is not a " "publication date." |                                     "Set status to draft if there is not a publication date." | ||||||
|                                 ), |                                 ), | ||||||
|                             } |                             } | ||||||
|                         ) |                         ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user