Ticket #12258: d.diff
File d.diff, 458 bytes (added by , 15 years ago) |
---|
-
django/db/models/query.py
diff --git a/django/db/models/query.py b/django/db/models/query.py index 6a16ce1..f4baa2b 100644
a b class QuerySet(object): 320 320 keyword arguments. 321 321 """ 322 322 clone = self.filter(*args, **kwargs) 323 if self.query.can_filter(): 324 clone = clone.order_by() 323 325 num = len(clone) 324 326 if num == 1: 325 327 return clone._result_cache[0]