Avoid warnings for deprecated instructions in djan 1.3
authorgibus
Fri, 08 Jun 2012 14:30:24 +0200
changeset 448 054d572a3db4
parent 447 49184f325653
child 449 5387c032df35
Avoid warnings for deprecated instructions in djan 1.3
src/cm/models.py
--- a/src/cm/models.py	Fri Jun 08 14:28:21 2012 +0200
+++ b/src/cm/models.py	Fri Jun 08 14:30:24 2012 +0200
@@ -603,7 +603,7 @@
     
         
     def create_inactive_user(self, email, send_invitation, **kwargs):
-        if 'postgresql' in settings.DATABASE_ENGINE:
+        if 'postgresql' in settings.DATABASES['default']['ENGINE']:
             #prevent concurrent access 
             cursor = connection.cursor()
             sql = "LOCK TABLE auth_user IN EXCLUSIVE MODE"