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 field 'Attribute.value'
12 db.add_column('philo_attribute', 'value', self.gf('philo.models.fields.JSONField')(default=''), keep_default=False)
15 def backwards(self, orm):
17 # Deleting field 'Attribute.value'
18 db.delete_column('philo_attribute', 'value_json')
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 'json_value': ('django.db.models.fields.TextField', [], {}),
35 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
36 'value': ('philo.models.fields.JSONField', [], {})
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'})
74 'Meta': {'object_name': 'Node'},
75 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
77 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
78 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
79 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
82 'Meta': {'object_name': 'Page'},
83 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
85 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
88 'Meta': {'object_name': 'Redirect'},
89 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
91 'target': ('django.db.models.fields.CharField', [], {'max_length': '200'})
93 'philo.relationship': {
94 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Relationship'},
95 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'relationship_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
96 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
97 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
99 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'relationship_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
100 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
103 'Meta': {'object_name': 'Tag'},
104 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
106 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
109 'Meta': {'object_name': 'Template'},
110 'code': ('philo.models.fields.TemplateField', [], {}),
111 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
112 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
114 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
115 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
116 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'})
120 complete_apps = ['philo']