Skip to content
This repository
Browse code

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...
commit 0b2a4075ccda967924e181cd5e2df225b55e98d3 2 parents aa3ae33 + 5fb51ac
Les Orchard lmorchard authored
4 apps/wiki/migrations/0013_add_permission_edit_template.py
@@ -16,6 +16,10 @@ class Migration(DataMigration):
16 16
17 17 def forwards(self, orm):
18 18 "Write your forwards methods here."
  19 + # Force create content types, since by default south wouldn't create
  20 + # them until it finished running migrations.
  21 + db.send_pending_create_signals()
  22 +
19 23 ct = orm['contenttypes.ContentType'].objects.get(app_label='wiki',
20 24 model='document')
21 25 for p in self.permissions:

0 comments on commit 0b2a407

Please sign in to comment.
Something went wrong with that request. Please try again.