Ticket #5883: 5883.diff

File 5883.diff, 953 bytes (added by arien <regexbot@…>, 17 years ago)

patch

  • django/db/backends/postgresql/base.py

     
    5656        else:
    5757            return getattr(self.cursor, attr)
    5858
     59    def __iter__(self):
     60        return iter(self.cursor)
     61
    5962class DatabaseFeatures(BaseDatabaseFeatures):
    6063    pass # This backend uses all the defaults.
    6164
  • django/db/backends/util.py

     
    4141        else:
    4242            return getattr(self.cursor, attr)
    4343
     44    def __iter__(self):
     45        return iter(self.cursor)
     46
    4447###############################################
    4548# Converters from database (string) to Python #
    4649###############################################
Back to Top