Commits

Mikhail Denisenko committed 8b2f6f9

added autocommit option

  • Participants
  • Parent commits 115e4e9

Comments (0)

Files changed (1)

File django_pytds/base.py

         try:
             options = self.settings_dict.get('OPTIONS', {})
             self.cast_avg_to_float = not bool(options.get('disable_avg_cast', False))
+            self.autocommit = bool(options.get('autocommit', True))
         except ValueError:
             self.cast_avg_to_float = False