3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Changing field 'NodeNavigationOverride.parent'
12 db.alter_column('philo_nodenavigationoverride', 'parent_id', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, null=True, to=orm['philo.Node']))
15 def backwards(self, orm):
17 # Changing field 'NodeNavigationOverride.parent'
18 db.alter_column('philo_nodenavigationoverride', 'parent_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['philo.Node']))
22 'contenttypes.contenttype': {
23 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
24 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
27 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
30 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
31 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
32 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
35 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
36 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
39 'Meta': {'object_name': 'Collection'},
40 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
44 'philo.collectionmember': {
45 'Meta': {'object_name': 'CollectionMember'},
46 'collection': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'members'", 'to': "orm['philo.Collection']"}),
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'index': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
49 'member_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
50 'member_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
53 'Meta': {'object_name': 'Contentlet'},
54 'content': ('philo.models.fields.TemplateField', [], {}),
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
57 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentlets'", 'to': "orm['philo.Page']"})
59 'philo.contentreference': {
60 'Meta': {'object_name': 'ContentReference'},
61 'content_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
62 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
63 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
65 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentreferences'", 'to': "orm['philo.Page']"})
68 'Meta': {'object_name': 'File'},
69 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
70 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71 'mimetype': ('django.db.models.fields.CharField', [], {'max_length': '255'})
73 'philo.foreignkeyvalue': {
74 'Meta': {'object_name': 'ForeignKeyValue'},
75 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
80 'Meta': {'object_name': 'JSONValue'},
81 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82 'value': ('philo.models.fields.JSONField', [], {})
84 'philo.manytomanyvalue': {
85 'Meta': {'object_name': 'ManyToManyValue'},
86 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'values': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['philo.ForeignKeyValue']", 'null': 'True', 'blank': 'True'})
91 'Meta': {'object_name': 'Node'},
92 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
94 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
95 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
96 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
97 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
98 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
99 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
100 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
102 'philo.nodenavigationoverride': {
103 'Meta': {'unique_together': "(('parent', 'child'),)", 'object_name': 'NodeNavigationOverride'},
104 'child': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'navigation_overrides'", 'to': "orm['philo.Node']"}),
105 'child_navigation': ('philo.models.fields.JSONField', [], {'default': 'None'}),
106 'hide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
107 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108 'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
109 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_navigation_overrides'", 'null': 'True', 'to': "orm['philo.Node']"}),
110 'title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
111 'url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
114 'Meta': {'object_name': 'Page'},
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
117 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
120 'Meta': {'object_name': 'Redirect'},
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
123 'target': ('django.db.models.fields.CharField', [], {'max_length': '200'})
126 'Meta': {'object_name': 'Tag'},
127 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
128 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
129 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
132 'Meta': {'object_name': 'Template'},
133 'code': ('philo.models.fields.TemplateField', [], {}),
134 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
135 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
137 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
138 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
139 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
140 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
141 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
142 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
143 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
147 complete_apps = ['philo']