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 # Deleting field 'Offer.due'
12 db.delete_column(u'funding_offer', 'due')
15 def backwards(self, orm):
17 # User chose to not deal with backwards NULL issues for 'Offer.due'
18 raise RuntimeError("Cannot reverse this migration. 'Offer.due' and its values cannot be restored.")
22 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
23 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
24 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
25 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
26 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
27 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
28 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
29 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
30 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
31 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
32 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
33 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
34 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
36 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
37 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
38 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
39 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
40 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
41 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
42 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
43 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
44 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
45 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
48 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Funding'},
49 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
50 'email': ('django.db.models.fields.EmailField', [], {'db_index': 'True', 'max_length': '75', 'blank': 'True'}),
51 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'language_code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'}),
53 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
54 'notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
55 'notify_key': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
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 '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', 'blank': 'True'}),
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 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
78 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'long_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
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']