# HG changeset patch # User gibus # Date 1339158624 -7200 # Node ID 054d572a3db40a9bf62af5c530c2380489f0a9f3 # Parent 49184f325653f8681a5bc0666a52ca63c7636fc0 Avoid warnings for deprecated instructions in djan 1.3 diff -r 49184f325653 -r 054d572a3db4 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"