Permalink
Browse files

Merge pull request #212 from nickolay/migration-content-type-error-bu…

…g-755149

bug 755149: fix running migrations on a clean DB.
  • Loading branch information...
2 parents aa3ae33 + 5fb51ac commit 0b2a4075ccda967924e181cd5e2df225b55e98d3 @lmorchard lmorchard committed May 15, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 apps/wiki/migrations/0013_add_permission_edit_template.py
View
4 apps/wiki/migrations/0013_add_permission_edit_template.py
@@ -16,6 +16,10 @@ class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
+ # Force create content types, since by default south wouldn't create
+ # them until it finished running migrations.
+ db.send_pending_create_signals()
+
ct = orm['contenttypes.ContentType'].objects.get(app_label='wiki',
model='document')
for p in self.permissions:

0 comments on commit 0b2a407

Please sign in to comment.