Ticket #1191: addklass.diff

File addklass.diff, 700 bytes (added by boxed@…, 9 years ago)

patch

  • django/core/meta/__init__.py

     
    16961696    man.save = curry(manipulator_save, opts, klass, add, change)
    16971697    man.get_related_objects = curry(manipulator_get_related_objects, opts, klass, add, change)
    16981698    man.flatten_data = curry(manipulator_flatten_data, opts, klass, add, change)
     1699    man.Klass = klass
    16991700    for field_name_list in opts.unique_together:
    17001701        setattr(man, 'isUnique%s' % '_'.join(field_name_list), curry(manipulator_validator_unique_together, field_name_list, opts))
    17011702    for f in opts.fields:
Back to Top