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 'Navigation.text'
12 db.alter_column('navigation_navigation', 'text', self.gf('django.db.models.fields.CharField')(max_length=50))
15 def backwards(self, orm):
17 # Changing field 'Navigation.text'
18 db.alter_column('navigation_navigation', 'text', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True))
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'})
29 'navigation.navigation': {
30 'Meta': {'object_name': 'Navigation'},
31 'depth': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '3', 'null': 'True', 'blank': 'True'}),
32 'hosting_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'hosted_navigation_set'", 'null': 'True', 'to': "orm['philo.Node']"}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
35 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
36 'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
37 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['navigation.Navigation']"}),
38 'reversing_parameters': ('philo.models.fields.JSONField', [], {'blank': 'True'}),
39 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
40 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
41 'target_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'targeting_navigation_set'", 'null': 'True', 'to': "orm['philo.Node']"}),
42 'text': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
43 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
44 'url_or_subpath': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
47 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
48 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
49 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
52 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
53 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
56 'Meta': {'object_name': 'Node'},
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
59 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
60 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
61 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
62 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
63 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
64 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
65 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
69 complete_apps = ['navigation']