diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2008-08-01 14:44:38 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2008-08-01 14:44:38 +0000 |
| commit | 8fe07d1e636486c831d5a667952b67e8b6e13bea (patch) | |
| tree | 34e0e6f675afa8a506d03feb62e928779ff84de0 | |
| parent | c623cc30bebb8a29b1ab9ee33a3c3ff54f389e8b (diff) | |
Fixed #8030 - use super() in BaseModelForm
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/forms/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 4f1f86d801..134746f4fc 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -259,8 +259,8 @@ 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, - 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): """ |
