Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Python 2.4 incompatibility introduced in r15249.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 33c155679cb283b31143df9389b06133c2bfeb20 1 parent 193f14d
@carljm carljm authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/models/
3  django/db/models/
@@ -10,7 +10,8 @@
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):
Please sign in to comment.
Something went wrong with that request. Please try again.