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 # Adding model 'NodeNavigationOverride'
12 db.create_table('philo_nodenavigationoverride', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('parent', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, null=True, related_name='child_navigation_overrides', to=orm['philo.Node'])),
15 ('child', self.gf('django.db.models.fields.related.ForeignKey')(related_name='navigation_overrides', to=orm['philo.Node'])),
16 ('title', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
17 ('url', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
18 ('order', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True, blank=True)),
19 ('child_navigation', self.gf('philo.models.fields.JSONField')(default=None)),
20 ('hide', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
22 db.send_create_signal('philo', ['NodeNavigationOverride'])
25 def backwards(self, orm):
27 # Deleting model 'NodeNavigationOverride'
28 db.delete_table('philo_nodenavigationoverride')
32 'contenttypes.contenttype': {
33 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
34 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
40 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
41 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
42 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
43 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
45 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
46 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
49 'Meta': {'object_name': 'Collection'},
50 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
51 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
54 'philo.collectionmember': {
55 'Meta': {'object_name': 'CollectionMember'},
56 'collection': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'members'", 'to': "orm['philo.Collection']"}),
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'index': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
59 'member_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
60 'member_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
63 'Meta': {'object_name': 'Contentlet'},
64 'content': ('philo.models.fields.TemplateField', [], {}),
65 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
67 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentlets'", 'to': "orm['philo.Page']"})
69 'philo.contentreference': {
70 'Meta': {'object_name': 'ContentReference'},
71 'content_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
72 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
75 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentreferences'", 'to': "orm['philo.Page']"})
78 'Meta': {'object_name': 'File'},
79 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
80 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'mimetype': ('django.db.models.fields.CharField', [], {'max_length': '255'})
83 'philo.foreignkeyvalue': {
84 'Meta': {'object_name': 'ForeignKeyValue'},
85 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
86 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
90 'Meta': {'object_name': 'JSONValue'},
91 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
92 'value': ('philo.models.fields.JSONField', [], {})
94 'philo.manytomanyvalue': {
95 'Meta': {'object_name': 'ManyToManyValue'},
96 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
97 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98 'values': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['philo.ForeignKeyValue']", 'null': 'True', 'blank': 'True'})
101 'Meta': {'object_name': 'Node'},
102 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
103 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
104 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
105 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
106 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
107 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
108 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
109 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
110 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
112 'philo.nodenavigationoverride': {
113 'Meta': {'unique_together': "(('parent', 'child'),)", 'object_name': 'NodeNavigationOverride'},
114 'child': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'navigation_overrides'", 'to': "orm['philo.Node']"}),
115 'child_navigation': ('philo.models.fields.JSONField', [], {'default': 'None'}),
116 'hide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
117 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118 'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
119 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'child_navigation_overrides'", 'to': "orm['philo.Node']"}),
120 'title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
121 'url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
124 'Meta': {'object_name': 'Page'},
125 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
127 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
130 'Meta': {'object_name': 'Redirect'},
131 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
133 'target': ('django.db.models.fields.CharField', [], {'max_length': '200'})
136 'Meta': {'object_name': 'Tag'},
137 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
139 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
142 'Meta': {'object_name': 'Template'},
143 'code': ('philo.models.fields.TemplateField', [], {}),
144 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
145 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
147 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
148 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
149 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
150 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
151 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
152 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
153 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
157 complete_apps = ['philo']