3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
7 class Migration(DataMigration):
9 def forwards(self, orm):
10 "Write your forwards methods here."
11 for f in orm.File.objects.filter(name="<Generated name>"):
16 def backwards(self, orm):
17 "Write your backwards methods here."
22 'contenttypes.contenttype': {
23 'Meta': {'ordering': "('name',)", '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'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
31 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
32 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
35 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
36 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
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', 'db_index': 'True'}),
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', 'db_index': 'True'}),
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'}),
72 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
74 'philo.foreignkeyvalue': {
75 'Meta': {'object_name': 'ForeignKeyValue'},
76 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
81 'Meta': {'object_name': 'JSONValue'},
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'value': ('philo.models.fields.JSONField', [], {'default': "'null'", 'db_index': 'True'})
85 'philo.manytomanyvalue': {
86 'Meta': {'object_name': 'ManyToManyValue'},
87 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'values': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['philo.ForeignKeyValue']", 'null': 'True', 'blank': 'True'})
92 'Meta': {'unique_together': "(('parent', 'slug'),)", 'object_name': 'Node'},
93 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
95 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
96 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
97 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
98 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
99 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
100 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'node_view_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
101 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
104 'Meta': {'object_name': 'Page'},
105 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
107 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
110 'Meta': {'object_name': 'Redirect'},
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112 'reversing_parameters': ('philo.models.fields.JSONField', [], {'blank': 'True'}),
113 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
114 'target_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'philo_redirect_related'", 'null': 'True', 'to': "orm['philo.Node']"}),
115 'url_or_subpath': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
118 'Meta': {'ordering': "('name',)", 'object_name': 'Tag'},
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
121 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
124 'Meta': {'unique_together': "(('parent', 'slug'),)", 'object_name': 'Template'},
125 'code': ('philo.models.fields.TemplateField', [], {}),
126 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
127 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
128 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
129 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
130 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
131 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
132 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
133 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
134 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
135 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
139 complete_apps = ['philo']