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 'Funding.language_code'
12 db.add_column(u'funding_funding', 'language_code',
13 self.gf('django.db.models.fields.CharField')(max_length=2, null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Funding.language_code'
19 db.delete_column(u'funding_funding', 'language_code')
24 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
25 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
26 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
27 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
28 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
29 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
30 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
31 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
32 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
33 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
34 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
35 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
36 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
38 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
39 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
40 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
41 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
42 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
43 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
44 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
45 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
46 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
47 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
50 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Funding'},
51 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
52 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
53 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'language_code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'}),
55 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
56 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
57 'payed_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
58 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
61 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
62 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
63 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
64 'cover': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
65 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
66 'due': ('django.db.models.fields.DateField', [], {}),
67 'end': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
68 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'poll': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['polls.Poll']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
70 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
71 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
72 'start': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
73 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
74 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
77 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
78 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
79 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
80 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
82 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
83 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
86 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
87 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
88 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
89 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90 'timestamp': ('django.db.models.fields.DateField', [], {})
93 'Meta': {'object_name': 'Poll'},
94 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95 'open': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96 'question': ('django.db.models.fields.TextField', [], {}),
97 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
101 complete_apps = ['funding']