def maybeCloseDatabaseConnections(self):
"""Close database connections if their use is not permitted."""
if self.database_use_possible and not self.database_use_permitted:
from django.db import connection
connection.close()
评论列表
文章目录