mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #30321 -- Added example of changed_data to forms docs.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							f944cb3d3b
						
					
				
				
					commit
					571ab44e8a
				
			| @@ -299,6 +299,8 @@ provided in :attr:`~Form.initial`. It returns an empty list if no data differs. | ||||
|     >>> f = ContactForm(request.POST, initial=data) | ||||
|     >>> if f.has_changed(): | ||||
|     ...     print("The following fields changed: %s" % ", ".join(f.changed_data)) | ||||
|     >>> f.changed_data | ||||
|     ['subject', 'message'] | ||||
|  | ||||
| Accessing the fields from the form | ||||
| ================================== | ||||
|   | ||||
		Reference in New Issue
	
	Block a user