Ticket #5444: new-style-classes_are_types.patch

File new-style-classes_are_types.patch, 603 bytes (added by leosoto <leo.soto@…>, 17 years ago)

patch

  • django/db/models/manipulators.py

    diff -r a729ba90ca04 django/db/models/manipulators.py
    a b class ManipulatorDescriptor(object):  
    3838                bases = [self.base]
    3939                if hasattr(model, 'Manipulator'):
    4040                    bases = [model.Manipulator] + bases
    41                 self.man = types.ClassType(self.name, tuple(bases), {})
     41                self.man = type(self.name, tuple(bases), {})
    4242                self.man._prepare(model)
    4343            return self.man
Back to Top