1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding field 'Entry.canonical_url'
12 db.add_column('migdal_entry', 'canonical_url',
13 self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Entry.canonical_url'
19 db.delete_column('migdal_entry', 'canonical_url')
23 'migdal.attachment': {
24 'Meta': {'object_name': 'Attachment'},
25 'entry': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['migdal.Entry']"}),
26 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
27 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
30 'Meta': {'object_name': 'Category'},
31 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32 'slug_en': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
33 'slug_pl': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
34 'taxonomy': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
35 'title_en': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'}),
36 'title_pl': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'})
39 'Meta': {'ordering': "['-date']", 'object_name': 'Entry'},
40 '_body_en_rendered': ('django.db.models.fields.TextField', [], {}),
41 '_body_pl_rendered': ('django.db.models.fields.TextField', [], {}),
42 '_lead_en_rendered': ('django.db.models.fields.TextField', [], {}),
43 '_lead_pl_rendered': ('django.db.models.fields.TextField', [], {}),
44 'author': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
45 'author_email': ('django.db.models.fields.EmailField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
46 'body_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
47 'body_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
48 'body_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
49 'body_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
50 'canonical_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
51 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['migdal.Category']", 'null': 'True', 'blank': 'True'}),
52 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
53 'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
54 'first_published_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
57 'in_stream': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58 'lead_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
59 'lead_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
60 'lead_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
61 'lead_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
62 'needed_en': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1', 'db_index': 'True'}),
63 'promo': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64 'published_at_en': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
65 'published_at_pl': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
66 'published_en': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67 'published_pl': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68 'slug_en': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
69 'slug_pl': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
70 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
71 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
72 'type': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
76 complete_apps = ['migdal']