Changeset 1547
- Timestamp:
- 12/04/05 21:39:18 (4 years ago)
- Files:
-
- django/trunk/django/core/meta/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/meta/__init__.py
r1516 r1547 730 730 attrs['__init__'] = curry(method_init, opts) 731 731 attrs['__eq__'] = curry(method_eq, opts) 732 attrs['__ne__'] = curry(method_ne, opts) 732 733 attrs['save'] = curry(method_save, opts) 733 734 attrs['save'].alters_data = True … … 978 979 def method_eq(opts, self, other): 979 980 return isinstance(other, self.__class__) and getattr(self, opts.pk.attname) == getattr(other, opts.pk.attname) 981 982 def method_ne(opts, self, other): 983 return not method_eq(opts, self, other) 980 984 981 985 def method_save(opts, self):
