| author | gibus |
| Fri, 08 Jun 2012 14:30:24 +0200 | |
| changeset 448 | 054d572a3db4 |
| parent 447 | 49184f325653 |
| child 449 | 5387c032df35 |
| src/cm/models.py | file | annotate | diff | comparison | revisions |
--- 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"