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