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 # Deleting field 'Attribute.json_value'
12 db.delete_column('philo_attribute', 'json_value')
15 def backwards(self, orm):
17 # Adding field 'Attribute.json_value'
18 db.add_column('philo_attribute', 'json_value', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False)
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'),)", 'object_name': 'Attribute'},
31 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'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': ('philo.models.fields.JSONField', [], {})
38 'Meta': {'object_name': 'Collection'},
39 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
40 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
43 'philo.collectionmember': {
44 'Meta': {'object_name': 'CollectionMember'},
45 'collection': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'members'", 'to': "orm['philo.Collection']"}),
46 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47 'index': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
48 'member_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
49 'member_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
52 'Meta': {'object_name': 'Contentlet'},
53 'content': ('philo.models.fields.TemplateField', [], {}),
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
56 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentlets'", 'to': "orm['philo.Page']"})
58 'philo.contentreference': {
59 'Meta': {'object_name': 'ContentReference'},
60 'content_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
61 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
62 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
64 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentreferences'", 'to': "orm['philo.Page']"})
67 'Meta': {'object_name': 'File'},
68 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'mimetype': ('django.db.models.fields.CharField', [], {'max_length': '255'})
73 'Meta': {'object_name': 'Node'},
74 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
76 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
77 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
78 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
81 'Meta': {'object_name': 'Page'},
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
84 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
87 'Meta': {'object_name': 'Redirect'},
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
90 'target': ('django.db.models.fields.CharField', [], {'max_length': '200'})
92 'philo.relationship': {
93 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Relationship'},
94 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'relationship_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
95 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
96 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
98 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'relationship_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
99 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
102 'Meta': {'object_name': 'Tag'},
103 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
105 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
108 'Meta': {'object_name': 'Template'},
109 'code': ('philo.models.fields.TemplateField', [], {}),
110 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
113 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
114 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
115 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'})
119 complete_apps = ['philo']