Made migrations compatible with new user model when creating from scratch.

This commit is contained in:
Kelketek 2013-07-20 15:45:16 -05:00
parent 3c496af6ad
commit 89aebfc13f
59 changed files with 819 additions and 207 deletions

View file

@ -27,6 +27,8 @@ class Migration(DataMigration):
conf.save()
except utils.DatabaseError:
# this will happen if we start the db from scratch (in which case this migration fix is not needed)
db.commit_transaction()
db.start_transaction()
pass