summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/migrations/0002_move_news_in.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/news/migrations/0002_move_news_in.py b/news/migrations/0002_move_news_in.py
index d6dafad..43d68df 100644
--- a/news/migrations/0002_move_news_in.py
+++ b/news/migrations/0002_move_news_in.py
@@ -7,14 +7,19 @@ from django.db import models
class Migration(SchemaMigration):
depends_on = (
- ('main', '0001_initial'),
+ ('main', '0031_move_news_out'),
)
def forwards(self, orm):
- pass
+ db.send_create_signal('news', ['News'])
+ if not db.dry_run:
+ ct = orm['contenttypes.ContentType'].objects
+ ct.filter(app_label='main', model='news').update(app_label='news')
def backwards(self, orm):
- pass
+ if not db.dry_run:
+ ct = orm['contenttypes.ContentType'].objects
+ ct.filter(app_label='news', model='news').update(app_label='main')
models = {
'auth.group': {