Ticket #12079: 12079.diff

File 12079.diff, 513 bytes (added by Karen Tracey, 15 years ago)
  • django/db/models/sql/query.py

     
    385385        q.set_extra_mask(('a',))
    386386        q.set_aggregate_mask(())
    387387        q.clear_ordering()
    388         return bool(q.execute_sql())
     388        q.set_limits(high=1)
     389        return bool(q.execute_sql(SINGLE))
    389390
    390391    def as_sql(self, with_limits=True, with_col_aliases=False):
    391392        """
Back to Top