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):
12 db.create_table('penfield_blog', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
17 db.send_create_signal('penfield', ['Blog'])
19 # Adding model 'BlogEntry'
20 db.create_table('penfield_blogentry', (
21 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
23 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
24 ('blog', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='entries', null=True, to=orm['penfield.Blog'])),
25 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blogentries', to=orm['oberlin.Person'])),
26 ('date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
27 ('content', self.gf('django.db.models.fields.TextField')()),
28 ('excerpt', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
30 db.send_create_signal('penfield', ['BlogEntry'])
32 # Adding M2M table for field tags on 'BlogEntry'
33 db.create_table('penfield_blogentry_tags', (
34 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
35 ('blogentry', models.ForeignKey(orm['penfield.blogentry'], null=False)),
36 ('tag', models.ForeignKey(orm['philo.tag'], null=False))
38 db.create_unique('penfield_blogentry_tags', ['blogentry_id', 'tag_id'])
40 # Adding model 'BlogView'
41 db.create_table('penfield_blogview', (
42 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
43 ('blog', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blogviews', to=orm['penfield.Blog'])),
44 ('index_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blog_index_related', to=orm['philo.Page'])),
45 ('entry_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blog_entry_related', to=orm['philo.Page'])),
46 ('entry_archive_page', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='blog_entry_archive_related', null=True, to=orm['philo.Page'])),
47 ('tag_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blog_tag_related', to=orm['philo.Page'])),
48 ('tag_archive_page', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='blog_tag_archive_related', null=True, to=orm['philo.Page'])),
49 ('entries_per_page', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
50 ('entry_permalink_style', self.gf('django.db.models.fields.CharField')(max_length=1)),
51 ('entry_permalink_base', self.gf('django.db.models.fields.CharField')(default='entries', max_length=255)),
52 ('tag_permalink_base', self.gf('django.db.models.fields.CharField')(default='tags', max_length=255)),
53 ('feed_suffix', self.gf('django.db.models.fields.CharField')(default='feed', max_length=255)),
54 ('feeds_enabled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
56 db.send_create_signal('penfield', ['BlogView'])
58 # Adding model 'Newsletter'
59 db.create_table('penfield_newsletter', (
60 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
61 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
62 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
64 db.send_create_signal('penfield', ['Newsletter'])
66 # Adding model 'NewsletterArticle'
67 db.create_table('penfield_newsletterarticle', (
68 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
69 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
70 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
71 ('newsletter', self.gf('django.db.models.fields.related.ForeignKey')(related_name='articles', to=orm['penfield.Newsletter'])),
72 ('date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
73 ('lede', self.gf('philo.models.fields.TemplateField')(null=True, blank=True)),
74 ('full_text', self.gf('philo.models.fields.TemplateField')()),
76 db.send_create_signal('penfield', ['NewsletterArticle'])
78 # Adding unique constraint on 'NewsletterArticle', fields ['newsletter', 'slug']
79 db.create_unique('penfield_newsletterarticle', ['newsletter_id', 'slug'])
81 # Adding M2M table for field authors on 'NewsletterArticle'
82 db.create_table('penfield_newsletterarticle_authors', (
83 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
84 ('newsletterarticle', models.ForeignKey(orm['penfield.newsletterarticle'], null=False)),
85 ('person', models.ForeignKey(orm['oberlin.person'], null=False))
87 db.create_unique('penfield_newsletterarticle_authors', ['newsletterarticle_id', 'person_id'])
89 # Adding M2M table for field tags on 'NewsletterArticle'
90 db.create_table('penfield_newsletterarticle_tags', (
91 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
92 ('newsletterarticle', models.ForeignKey(orm['penfield.newsletterarticle'], null=False)),
93 ('tag', models.ForeignKey(orm['philo.tag'], null=False))
95 db.create_unique('penfield_newsletterarticle_tags', ['newsletterarticle_id', 'tag_id'])
97 # Adding model 'NewsletterIssue'
98 db.create_table('penfield_newsletterissue', (
99 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
100 ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
101 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255, db_index=True)),
102 ('newsletter', self.gf('django.db.models.fields.related.ForeignKey')(related_name='issues', to=orm['penfield.Newsletter'])),
103 ('numbering', self.gf('django.db.models.fields.CharField')(max_length=50)),
105 db.send_create_signal('penfield', ['NewsletterIssue'])
107 # Adding unique constraint on 'NewsletterIssue', fields ['newsletter', 'numbering']
108 db.create_unique('penfield_newsletterissue', ['newsletter_id', 'numbering'])
110 # Adding M2M table for field articles on 'NewsletterIssue'
111 db.create_table('penfield_newsletterissue_articles', (
112 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
113 ('newsletterissue', models.ForeignKey(orm['penfield.newsletterissue'], null=False)),
114 ('newsletterarticle', models.ForeignKey(orm['penfield.newsletterarticle'], null=False))
116 db.create_unique('penfield_newsletterissue_articles', ['newsletterissue_id', 'newsletterarticle_id'])
118 # Adding model 'NewsletterView'
119 db.create_table('penfield_newsletterview', (
120 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
121 ('newsletter', self.gf('django.db.models.fields.related.ForeignKey')(related_name='newsletterviews', to=orm['penfield.Newsletter'])),
122 ('index_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='newsletter_index_related', to=orm['philo.Page'])),
123 ('article_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='newsletter_article_related', to=orm['philo.Page'])),
124 ('article_archive_page', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='newsletter_article_archive_related', null=True, to=orm['philo.Page'])),
125 ('issue_page', self.gf('django.db.models.fields.related.ForeignKey')(related_name='newsletter_issue_related', to=orm['philo.Page'])),
126 ('issue_archive_page', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='newsletter_issue_archive_related', null=True, to=orm['philo.Page'])),
127 ('article_permalink_style', self.gf('django.db.models.fields.CharField')(max_length=1)),
128 ('article_permalink_base', self.gf('django.db.models.fields.CharField')(default='articles', max_length=255)),
129 ('issue_permalink_base', self.gf('django.db.models.fields.CharField')(default='issues', max_length=255)),
130 ('feed_suffix', self.gf('django.db.models.fields.CharField')(default='feed', max_length=255)),
131 ('feeds_enabled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
133 db.send_create_signal('penfield', ['NewsletterView'])
136 def backwards(self, orm):
138 # Deleting model 'Blog'
139 db.delete_table('penfield_blog')
141 # Deleting model 'BlogEntry'
142 db.delete_table('penfield_blogentry')
144 # Removing M2M table for field tags on 'BlogEntry'
145 db.delete_table('penfield_blogentry_tags')
147 # Deleting model 'BlogView'
148 db.delete_table('penfield_blogview')
150 # Deleting model 'Newsletter'
151 db.delete_table('penfield_newsletter')
153 # Deleting model 'NewsletterArticle'
154 db.delete_table('penfield_newsletterarticle')
156 # Removing unique constraint on 'NewsletterArticle', fields ['newsletter', 'slug']
157 db.delete_unique('penfield_newsletterarticle', ['newsletter_id', 'slug'])
159 # Removing M2M table for field authors on 'NewsletterArticle'
160 db.delete_table('penfield_newsletterarticle_authors')
162 # Removing M2M table for field tags on 'NewsletterArticle'
163 db.delete_table('penfield_newsletterarticle_tags')
165 # Deleting model 'NewsletterIssue'
166 db.delete_table('penfield_newsletterissue')
168 # Removing unique constraint on 'NewsletterIssue', fields ['newsletter', 'numbering']
169 db.delete_unique('penfield_newsletterissue', ['newsletter_id', 'numbering'])
171 # Removing M2M table for field articles on 'NewsletterIssue'
172 db.delete_table('penfield_newsletterissue_articles')
174 # Deleting model 'NewsletterView'
175 db.delete_table('penfield_newsletterview')
180 'Meta': {'object_name': 'Group'},
181 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
183 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
186 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
187 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
188 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
189 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
190 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
193 'Meta': {'object_name': 'User'},
194 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
195 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
196 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
197 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
198 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
199 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
200 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
201 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
202 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
203 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
204 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
205 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
206 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
208 'contenttypes.contenttype': {
209 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
210 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
211 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
212 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
213 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
216 'Meta': {'object_name': 'Person'},
217 'bio': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
218 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219 'name': ('django.db.models.fields.CharField', [], {'max_length': '70', 'blank': 'True'}),
220 'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True', 'blank': 'True'})
223 'Meta': {'object_name': 'Blog'},
224 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
226 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
228 'penfield.blogentry': {
229 'Meta': {'object_name': 'BlogEntry'},
230 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blogentries'", 'to': "orm['oberlin.Person']"}),
231 'blog': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'entries'", 'null': 'True', 'to': "orm['penfield.Blog']"}),
232 'content': ('django.db.models.fields.TextField', [], {}),
233 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
234 'excerpt': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
235 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
237 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'blogentries'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['philo.Tag']"}),
238 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
240 'penfield.blogview': {
241 'Meta': {'object_name': 'BlogView'},
242 'blog': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blogviews'", 'to': "orm['penfield.Blog']"}),
243 'entries_per_page': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
244 'entry_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'blog_entry_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
245 'entry_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_entry_related'", 'to': "orm['philo.Page']"}),
246 'entry_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'entries'", 'max_length': '255'}),
247 'entry_permalink_style': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
248 'feed_suffix': ('django.db.models.fields.CharField', [], {'default': "'feed'", 'max_length': '255'}),
249 'feeds_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
250 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
251 'index_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_index_related'", 'to': "orm['philo.Page']"}),
252 'tag_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'blog_tag_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
253 'tag_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blog_tag_related'", 'to': "orm['philo.Page']"}),
254 'tag_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'tags'", 'max_length': '255'})
256 'penfield.newsletter': {
257 'Meta': {'object_name': 'Newsletter'},
258 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
259 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
260 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
262 'penfield.newsletterarticle': {
263 'Meta': {'unique_together': "(('newsletter', 'slug'),)", 'object_name': 'NewsletterArticle'},
264 'authors': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'newsletterarticles'", 'symmetrical': 'False', 'to': "orm['oberlin.Person']"}),
265 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
266 'full_text': ('philo.models.fields.TemplateField', [], {}),
267 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
268 'lede': ('philo.models.fields.TemplateField', [], {'null': 'True', 'blank': 'True'}),
269 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['penfield.Newsletter']"}),
270 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
271 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'newsletterarticles'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['philo.Tag']"}),
272 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
274 'penfield.newsletterissue': {
275 'Meta': {'unique_together': "(('newsletter', 'numbering'),)", 'object_name': 'NewsletterIssue'},
276 'articles': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'issues'", 'symmetrical': 'False', 'to': "orm['penfield.NewsletterArticle']"}),
277 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
278 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'issues'", 'to': "orm['penfield.Newsletter']"}),
279 'numbering': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
280 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
281 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
283 'penfield.newsletterview': {
284 'Meta': {'object_name': 'NewsletterView'},
285 'article_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'newsletter_article_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
286 'article_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_article_related'", 'to': "orm['philo.Page']"}),
287 'article_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'articles'", 'max_length': '255'}),
288 'article_permalink_style': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
289 'feed_suffix': ('django.db.models.fields.CharField', [], {'default': "'feed'", 'max_length': '255'}),
290 'feeds_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
291 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
292 'index_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_index_related'", 'to': "orm['philo.Page']"}),
293 'issue_archive_page': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'newsletter_issue_archive_related'", 'null': 'True', 'to': "orm['philo.Page']"}),
294 'issue_page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletter_issue_related'", 'to': "orm['philo.Page']"}),
295 'issue_permalink_base': ('django.db.models.fields.CharField', [], {'default': "'issues'", 'max_length': '255'}),
296 'newsletter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'newsletterviews'", 'to': "orm['penfield.Newsletter']"})
299 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Attribute'},
300 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
301 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
302 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
303 'json_value': ('django.db.models.fields.TextField', [], {}),
304 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'})
307 'Meta': {'object_name': 'Node'},
308 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
309 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
310 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
311 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
312 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
315 'Meta': {'object_name': 'Page'},
316 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
317 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
318 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
320 'philo.relationship': {
321 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'),)", 'object_name': 'Relationship'},
322 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'relationship_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
323 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
324 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
325 'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
326 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'relationship_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
327 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
330 'Meta': {'object_name': 'Tag'},
331 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
332 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
333 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
336 'Meta': {'object_name': 'Template'},
337 'code': ('philo.models.fields.TemplateField', [], {}),
338 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
339 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
340 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
341 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
342 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
343 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'})
347 complete_apps = ['penfield']