mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.8.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c3 from master
			
			
This commit is contained in:
		| @@ -860,7 +860,8 @@ As with regular formsets, it's possible to :ref:`specify initial data | |||||||
| parameter when instantiating the model formset class returned by | parameter when instantiating the model formset class returned by | ||||||
| :func:`~django.forms.models.modelformset_factory`. However, with model | :func:`~django.forms.models.modelformset_factory`. However, with model | ||||||
| formsets, the initial values only apply to extra forms, those that aren't | formsets, the initial values only apply to extra forms, those that aren't | ||||||
| attached to an existing model instance. | attached to an existing model instance. If the extra forms with initial data | ||||||
|  | aren't changed by the user, they won't be validated or saved. | ||||||
|  |  | ||||||
| .. _saving-objects-in-the-formset: | .. _saving-objects-in-the-formset: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user