Changes between Initial Version and Version 1 of Ticket #22420, comment 17
- Timestamp:
- Nov 10, 2014, 6:10:44 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22420, comment 17
initial v1 11 11 """ 12 12 def _close_db_connections(*args, **kwargs): 13 ret = None 13 14 try: 14 func(*args, **kwargs)15 ret = func(*args, **kwargs) 15 16 finally: 16 17 for conn in connections.all(): 17 18 conn.close() 19 return ret 18 20 return _close_db_connections 19 21 }}}