Ticket #11218: 11218.patch

File 11218.patch, 539 bytes (added by Yuri Baburov, 15 years ago)

silly typo fix (not verified flow correctness)

  • django/db/models/sql/query.py

    diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
    index 394e30b..cc8c264 100644
    a b class BaseQuery(object):  
    23622362            return cursor
    23632363        if result_type == SINGLE:
    23642364            if self.ordering_aliases:
    2365                 return cursor.fetchone()[:-len(results.ordering_aliases)]
     2365                return cursor.fetchone()[:-len(self.ordering_aliases)]
    23662366            return cursor.fetchone()
    23672367
    23682368        # The MULTI case.
Back to Top