3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6 from philo.migrations import person_model, frozen_person
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
12 # Adding index on 'NewsletterArticle', fields ['full_text']
13 db.create_index('penfield_newsletterarticle', ['full_text'])
16 def backwards(self, orm):
18 # Removing index on 'NewsletterArticle', fields ['full_text']
19 db.delete_index('penfield_newsletterarticle', ['full_text'])
24 'Meta': {'object_name': 'Group'},
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
30 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
31 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
32 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
37 'Meta': {'object_name': 'User'},
38 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
39 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
40 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
41 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
44 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
45 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
46 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
47 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
48 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
49 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
50 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
52 'contenttypes.contenttype': {
53 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
54 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
57 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
59 person_model: frozen_person,
61 'Meta': {'object_name': 'Blog'},
62 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
64 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
66 'penfield.blogentry': {
67 'Meta': {'object_name': 'BlogEntry'},
68 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blogentries'", 'to': "orm['%s']" % person_model}),
69 'blog': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'entries'", 'null': 'True', 'to': "orm['penfield.Blog']"}),
70 'content': ('django.db.models.fields.TextField', [], {}),
71 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
72 'excerpt': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
75 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'blogentries'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['philo.Tag']"}),
76 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
78 'penfield.blogview': {
79 'Meta': {'object_name': 'BlogView'},
80 'blog': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blogviews'", 'to': "orm['penfield.Blog']"}),
81 'entries_per_page': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
82 'entry_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'blog_entry_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
83 'entry_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_entry_related'", 'to': "orm['philo.Page']"}),
84 'entry_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'entries'", 'max_length': '255'}),
85 'entry_permalink_style': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
86 'feed_suffix': ('django.db.models.fields.CharField', [], {'default': "'feed'", 'max_length': '255'}),
87 'feeds_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'index_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_index_related'", 'to': "orm['philo.Page']"}),
90 'tag_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'blog_tag_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
91 'tag_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_tag_related'", 'to': "orm['philo.Page']"}),
92 'tag_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'tags'", 'max_length': '255'})
94 'penfield.newsletter': {
95 'Meta': {'object_name': 'Newsletter'},
96 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
98 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
100 'penfield.newsletterarticle': {
101 'Meta': {'unique_together': "(('newsletter', 'slug'),)", 'object_name': 'NewsletterArticle'},
102 'authors': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'newsletterarticles'", 'symmetrical': 'False', 'to': "orm['%s']" % person_model}),
103 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
104 'full_text': ('philo.models.fields.TemplateField', [], {'db_index': 'True'}),
105 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'lede': ('philo.models.fields.TemplateField', [], {'null': 'True', 'blank': 'True'}),
107 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['penfield.Newsletter']"}),
108 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
109 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'newsletterarticles'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['philo.Tag']"}),
110 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
112 'penfield.newsletterissue': {
113 'Meta': {'unique_together': "(('newsletter', 'numbering'),)", 'object_name': 'NewsletterIssue'},
114 'articles': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'issues'", 'symmetrical': 'False', 'to': "orm['penfield.NewsletterArticle']"}),
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'issues'", 'to': "orm['penfield.Newsletter']"}),
117 'numbering': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
118 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
119 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
121 'penfield.newsletterview': {
122 'Meta': {'object_name': 'NewsletterView'},
123 'article_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'newsletter_article_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
124 'article_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_article_related'", 'to': "orm['philo.Page']"}),
125 'article_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'articles'", 'max_length': '255'}),
126 'article_permalink_style': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
127 'feed_suffix': ('django.db.models.fields.CharField', [], {'default': "'feed'", 'max_length': '255'}),
128 'feeds_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130 'index_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_index_related'", 'to': "orm['philo.Page']"}),
131 'issue_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'newsletter_issue_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
132 'issue_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_issue_related'", 'to': "orm['philo.Page']"}),
133 'issue_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'issues'", 'max_length': '255'}),
134 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletterviews'", 'to': "orm['penfield.Newsletter']"})
137 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Attribute'},
138 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
139 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
140 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
142 'value': ('philo.models.fields.JSONField', [], {})
145 'Meta': {'object_name': 'Node'},
146 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
148 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
149 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
150 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
153 'Meta': {'object_name': 'Page'},
154 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
155 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
156 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
158 'philo.relationship': {
159 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Relationship'},
160 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'relationship_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
161 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
162 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
164 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'relationship_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
165 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
168 'Meta': {'object_name': 'Tag'},
169 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
170 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
171 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
174 'Meta': {'object_name': 'Template'},
175 'code': ('philo.models.fields.TemplateField', [], {}),
176 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
177 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
178 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
179 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
180 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
181 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'})
185 complete_apps = ['penfield']