Merge branch 'sli' into 'master'

Fixed old database bug in dev env



See merge request !2
This commit is contained in:
Skia
2016-09-04 15:00:16 +02:00
3 changed files with 46 additions and 43 deletions

View File

@ -240,7 +240,7 @@ class User(AbstractBaseUser):
else:
create = True
super(User, self).save(*args, **kwargs)
if create: # Create user on the old site: TODO remove me!
if create and settings.IS_OLD_MYSQL_PRESENT: # Create user on the old site: TODO remove me!
import MySQLdb
try:
db = MySQLdb.connect(**settings.OLD_MYSQL_INFOS)