Ticket #12258: order_by.patch

File order_by.patch, 472 bytes (added by anonymous, 15 years ago)
  • query.py

     
    289289        Performs the query and returns a single object matching the given
    290290        keyword arguments.
    291291        """
    292         clone = self.filter(*args, **kwargs)
     292        clone = self.filter(*args, **kwargs).order_by()
    293293        num = len(clone)
    294294        if num == 1:
    295295            return clone._result_cache[0]
Back to Top