mirror of
https://github.com/django/django.git
synced 2025-02-04 14:37:19 +00:00
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:
parent
193f14d862
commit
33c155679c
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user