Code

Ticket #1191: addklass.diff

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

patch

Line 
1Index: django/core/meta/__init__.py
2===================================================================
3--- django/core/meta/__init__.py        (revision 1867)
4+++ django/core/meta/__init__.py        (working copy)
5@@ -1696,6 +1696,7 @@
6     man.save = curry(manipulator_save, opts, klass, add, change)
7     man.get_related_objects = curry(manipulator_get_related_objects, opts, klass, add, change)
8     man.flatten_data = curry(manipulator_flatten_data, opts, klass, add, change)
9+    man.Klass = klass
10     for field_name_list in opts.unique_together:
11         setattr(man, 'isUnique%s' % '_'.join(field_name_list), curry(manipulator_validator_unique_together, field_name_list, opts))
12     for f in opts.fields: