Ticket #5444: new-style-classes_are_types.patch
File new-style-classes_are_types.patch, 603 bytes (added by , 17 years ago) |
---|
-
django/db/models/manipulators.py
diff -r a729ba90ca04 django/db/models/manipulators.py
a b class ManipulatorDescriptor(object): 38 38 bases = [self.base] 39 39 if hasattr(model, 'Manipulator'): 40 40 bases = [model.Manipulator] + bases 41 self.man = type s.ClassType(self.name, tuple(bases), {})41 self.man = type(self.name, tuple(bases), {}) 42 42 self.man._prepare(model) 43 43 return self.man