From 33c155679cb283b31143df9389b06133c2bfeb20 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 26 Jan 2011 18:20:19 +0000 Subject: [PATCH] Fixed Python 2.4 incompatibility introduced in r15249. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15329 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/deletion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/db/models/deletion.py b/django/db/models/deletion.py index 07f677ea65..73960f5e3c 100644 --- a/django/db/models/deletion.py +++ b/django/db/models/deletion.py @@ -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):