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 'Navigation'
12 db.create_table('navigation_navigation', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('parent', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='children', null=True, to=orm['navigation.Navigation'])),
15 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
16 ('lft', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
17 ('rght', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
18 ('tree_id', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
19 ('level', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
20 ('hosting_node', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='hosted_navigation_set', null=True, to=orm['philo.Node'])),
21 ('target_node', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='targeting_navigation_set', null=True, to=orm['philo.Node'])),
22 ('url_or_subpath', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
23 ('reversing_parameters', self.gf('philo.models.fields.JSONField')(blank=True)),
24 ('text', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
25 ('order', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True, blank=True)),
26 ('depth', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=3, null=True, blank=True)),
28 db.send_create_signal('navigation', ['Navigation'])
31 def backwards(self, orm):
33 # Deleting model 'Navigation'
34 db.delete_table('navigation_navigation')
38 'contenttypes.contenttype': {
39 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
40 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
43 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
45 'navigation.navigation': {
46 'Meta': {'object_name': 'Navigation'},
47 'depth': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '3', 'null': 'True', 'blank': 'True'}),
48 'hosting_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'hosted_navigation_set'", 'null': 'True', 'to': "orm['philo.Node']"}),
49 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
51 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
52 'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
53 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['navigation.Navigation']"}),
54 'reversing_parameters': ('philo.models.fields.JSONField', [], {'blank': 'True'}),
55 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
56 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
57 'target_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'targeting_navigation_set'", 'null': 'True', 'to': "orm['philo.Node']"}),
58 'text': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
59 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
60 'url_or_subpath': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
63 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
64 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
65 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
68 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
69 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
72 'Meta': {'object_name': 'Node'},
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
75 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
76 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
77 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
78 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
79 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
80 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
81 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
85 complete_apps = ['navigation']