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 'Offer.poll'
12 db.add_column(u'funding_offer', 'poll',
13 self.gf('django.db.models.fields.related.ForeignKey')(to=orm['polls.Poll'], null=True, on_delete=models.SET_NULL),
17 def backwards(self, orm):
18 # Deleting field 'Offer.poll'
19 db.delete_column(u'funding_offer', 'poll_id')
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 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
55 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
56 'payed_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
57 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
60 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
61 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
62 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
63 'cover': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
64 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
65 'due': ('django.db.models.fields.DateField', [], {}),
66 'end': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
67 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'poll': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['polls.Poll']", 'null': 'True', 'on_delete': 'models.SET_NULL'}),
69 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
70 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
71 'start': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
72 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
73 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
76 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
77 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
78 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
79 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
80 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
81 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
82 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
85 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
86 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
87 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
88 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'timestamp': ('django.db.models.fields.DateField', [], {})
92 'Meta': {'object_name': 'Poll'},
93 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'open': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95 'question': ('django.db.models.fields.TextField', [], {}),
96 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
100 complete_apps = ['funding']