Fixed Python 2.4 incompatibility introduced in r15249.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer 2011-01-26 18:20:19 +00:00
parent 193f14d862
commit 33c155679c
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ from django.utils.functional import wraps
class ProtectedError(IntegrityError):
def __init__(self, msg, protected_objects):
self.protected_objects = protected_objects
super(ProtectedError, self).__init__(msg, protected_objects)
# TODO change this to use super() when we drop Python 2.4
IntegrityError.__init__(self, msg, protected_objects)
def CASCADE(collector, field, sub_objs, using):