mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #8030 - use super() in BaseModelForm
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -259,8 +259,8 @@ class BaseModelForm(BaseForm): | |||||||
|         # if initial was provided, it should override the values from instance |         # if initial was provided, it should override the values from instance | ||||||
|         if initial is not None: |         if initial is not None: | ||||||
|             object_data.update(initial) |             object_data.update(initial) | ||||||
|         BaseForm.__init__(self, data, files, auto_id, prefix, object_data, |         super(BaseModelForm, self).__init__(data, files, auto_id, prefix, object_data, | ||||||
|                           error_class, label_suffix, empty_permitted) |                                             error_class, label_suffix, empty_permitted) | ||||||
|  |  | ||||||
|     def save(self, commit=True): |     def save(self, commit=True): | ||||||
|         """ |         """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user