Ticket #8076: 8076_get_prevnext_by_foo.diff
File 8076_get_prevnext_by_foo.diff, 582 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/related.py
147 147 if hasattr(value, 'as_sql'): 148 148 sql, params = value.as_sql() 149 149 return QueryWrapper(('(%s)' % sql), params) 150 if lookup_type == 'exact':150 if lookup_type in ['exact', 'gt', 'lt']: 151 151 return [pk_trace(value)] 152 152 if lookup_type == 'in': 153 153 return [pk_trace(v) for v in value]