Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #8030 - use super() in BaseModelForm

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8fe07d1e636486c831d5a667952b67e8b6e13bea 1 parent c623cc3
@spookylukey spookylukey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/forms/models.py
View
4 django/forms/models.py
@@ -259,8 +259,8 @@ def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
# 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,
- error_class, label_suffix, empty_permitted)
+ super(BaseModelForm, self).__init__(data, files, auto_id, prefix, object_data,
+ error_class, label_suffix, empty_permitted)
def save(self, commit=True):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.