src/cm/models.py
changeset 448 054d572a3db4
parent 407 2d14a80716e2
child 460 2fdb7d095d5c
--- 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"