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 'Cite.sticky'
12 db.add_column('social_cite', 'sticky',
13 self.gf('django.db.models.fields.BooleanField')(default=False),
16 # Adding field 'Cite.image'
17 db.add_column('social_cite', 'image',
18 self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True),
21 # Adding field 'Cite.image_title'
22 db.add_column('social_cite', 'image_title',
23 self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
26 # Adding field 'Cite.image_author'
27 db.add_column('social_cite', 'image_author',
28 self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
31 # Adding field 'Cite.image_link'
32 db.add_column('social_cite', 'image_link',
33 self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True),
36 # Adding field 'Cite.image_license'
37 db.add_column('social_cite', 'image_license',
38 self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
41 # Adding field 'Cite.image_license_link'
42 db.add_column('social_cite', 'image_license_link',
43 self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True),
47 def backwards(self, orm):
48 # Deleting field 'Cite.sticky'
49 db.delete_column('social_cite', 'sticky')
51 # Deleting field 'Cite.image'
52 db.delete_column('social_cite', 'image')
54 # Deleting field 'Cite.image_title'
55 db.delete_column('social_cite', 'image_title')
57 # Deleting field 'Cite.image_author'
58 db.delete_column('social_cite', 'image_author')
60 # Deleting field 'Cite.image_link'
61 db.delete_column('social_cite', 'image_link')
63 # Deleting field 'Cite.image_license'
64 db.delete_column('social_cite', 'image_license')
66 # Deleting field 'Cite.image_license_link'
67 db.delete_column('social_cite', 'image_license_link')
72 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
73 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
74 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
75 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
76 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
77 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
78 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
79 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
80 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
81 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
82 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
83 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
84 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
86 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
87 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
88 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
89 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
90 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
91 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
92 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
93 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
94 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
95 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
98 'Meta': {'ordering': "('vip', 'text')", 'object_name': 'Cite'},
99 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
102 'image_author': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
103 'image_license': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
104 'image_license_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
105 'image_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
106 'image_title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
107 'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
108 'small': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109 'sticky': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110 'text': ('django.db.models.fields.TextField', [], {}),
111 'vip': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
115 complete_apps = ['social']