mirror of https://github.com/django/django.git
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:
parent
c623cc30be
commit
8fe07d1e63
|
@ -259,7 +259,7 @@ class BaseModelForm(BaseForm):
|
|||
# if initial was provided, it should override the values from instance
|
||||
if initial is not None:
|
||||
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)
|
||||
|
||||
def save(self, commit=True):
|
||||
|
|
Loading…
Reference in New Issue