Commits

Victor Kotseruba committed 482f4b3

migration orm names fix

Comments (0)

Files changed (4)

superwiki/migrations/0001_initial.py

         
         # Adding model 'WikiPage'
         db.create_table('wiki', (
-            ('body', orm['wiki.WikiPage:body']),
-            ('author', orm['wiki.WikiPage:author']),
-            ('url', orm['wiki.WikiPage:url']),
-            ('rendered_body', orm['wiki.WikiPage:rendered_body']),
-            ('object_id', orm['wiki.WikiPage:object_id']),
-            ('created', orm['wiki.WikiPage:created']),
-            ('content_type', orm['wiki.WikiPage:content_type']),
-            ('id', orm['wiki.WikiPage:id']),
+            ('body', orm['superwiki.WikiPage:body']),
+            ('author', orm['superwiki.WikiPage:author']),
+            ('url', orm['superwiki.WikiPage:url']),
+            ('rendered_body', orm['superwiki.WikiPage:rendered_body']),
+            ('object_id', orm['superwiki.WikiPage:object_id']),
+            ('created', orm['superwiki.WikiPage:created']),
+            ('content_type', orm['superwiki.WikiPage:content_type']),
+            ('id', orm['superwiki.WikiPage:id']),
         ))
         db.send_create_signal('wiki', ['WikiPage'])
         
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
         },
-        'wiki.wikipage': {
+        'superwiki.wikipage': {
             'Meta': {'unique_together': "(('object_id', 'content_type', 'url'),)", 'db_table': "'wiki'"},
             'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
             'body': ('django.db.models.fields.TextField', [], {}),

superwiki/migrations/0002_add_rev.py

 class Migration:
     
     def forwards(self, orm):
-        db.add_column('wiki', 'rev', orm['wiki.wikipage:rev'])
+        db.add_column('wiki', 'rev', orm['superwiki.wikipage:rev'])
     
     def backwards(self, orm):
         db.delete_column('wiki', 'rev')
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
         },
-        'wiki.wikipage': {
+        'superwiki.wikipage': {
             'Meta': {'unique_together': "(('object_id', 'content_type', 'url'),)", 'db_table': "'wiki'"},
             'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
             'body': ('django.db.models.fields.TextField', [], {}),

superwiki/migrations/0003_add_title.py

     def forwards(self, orm):
         
         # Adding field 'WikiPage.title'
-        db.add_column('wiki', 'title', orm['wiki.wikipage:title'])
+        db.add_column('wiki', 'title', orm['superwiki.wikipage:title'])
         
     
     
             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
             'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
         },
-        'wiki.wikipage': {
+        'superwiki.wikipage': {
             'Meta': {'unique_together': "(('object_id', 'content_type', 'url'),)", 'db_table': "'wiki'"},
             'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
             'body': ('django.db.models.fields.TextField', [], {}),

superwiki/migrations/0004_add_linked_pages.py

             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
         },
-        'wiki.wikipage': {
+        'superwiki.wikipage': {
             'Meta': {'unique_together': "(('object_id', 'content_type', 'url'),)", 'db_table': "'wiki'"},
             'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
             'body': ('django.db.models.fields.TextField', [], {}),