Permalink
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...
1 parent c623cc3 commit 8fe07d1e636486c831d5a667952b67e8b6e13bea @spookylukey spookylukey committed Aug 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 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):
"""

0 comments on commit 8fe07d1

Please sign in to comment.