mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Removed comment from Form.changed_data; refs #24191
This commit is contained in:
		
							parent
							
								
									5c98223f39
								
							
						
					
					
						commit
						5987b3c46d
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -433,12 +433,6 @@ class BaseForm(object):
 | 
			
		|||
    def changed_data(self):
 | 
			
		||||
        if self._changed_data is None:
 | 
			
		||||
            self._changed_data = []
 | 
			
		||||
            # XXX: For now we're asking the individual fields whether or not the
 | 
			
		||||
            # data has changed. It would probably be more efficient to hash the
 | 
			
		||||
            # initial data, store it in a hidden field, and compare a hash of the
 | 
			
		||||
            # submitted data, but we'd need a way to easily get the string value
 | 
			
		||||
            # for a given field. Right now, that logic is embedded in the render
 | 
			
		||||
            # method of each widget.
 | 
			
		||||
            for name, field in self.fields.items():
 | 
			
		||||
                prefixed_name = self.add_prefix(name)
 | 
			
		||||
                data_value = field.widget.value_from_datadict(self.data, self.files, prefixed_name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue