summaryrefslogtreecommitdiffstats
path: root/news/migrations
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-29 22:16:39 +0200
committerDan McGee <dan@archlinux.org>2010-09-29 22:16:39 +0200
commit7def999b0aa3511671049826741ee3ebb6ce9573 (patch)
tree66cb8c4e7f43ca049f6587840684b8d5e4b76ef2 /news/migrations
parentbc5a5781bf43f81ab266bf258d4ab8bf16c9b2d0 (diff)
downloadarchweb-7def999b0aa3511671049826741ee3ebb6ce9573.tar.gz
archweb-7def999b0aa3511671049826741ee3ebb6ce9573.tar.xz
Fix migration dependencies exposed after moving models
When we moved some models from one app to another, we didn't do anything to ensure the tables were created at all initially. Enforce this by adding the minimal required dependencies- those migrations in the 'main' model that last touched the involved models moving between apps. Noticed-by: Angel Velasquez <angvp@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/migrations')
-rw-r--r--news/migrations/0002_move_news_in.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/news/migrations/0002_move_news_in.py b/news/migrations/0002_move_news_in.py
index 617e4b6..d6dafad 100644
--- a/news/migrations/0002_move_news_in.py
+++ b/news/migrations/0002_move_news_in.py
@@ -6,6 +6,10 @@ from django.db import models
class Migration(SchemaMigration):
+ depends_on = (
+ ('main', '0001_initial'),
+ )
+
def forwards(self, orm):
pass