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 'Perk.end_date'
12 db.add_column(u'funding_perk', 'end_date',
13 self.gf('django.db.models.fields.DateField')(null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Perk.end_date'
19 db.delete_column(u'funding_perk', 'end_date')
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', [], {'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 'due': ('django.db.models.fields.DateField', [], {}),
64 'end': ('django.db.models.fields.DateField', [], {}),
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
67 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
68 'start': ('django.db.models.fields.DateField', [], {}),
69 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
70 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
73 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
74 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
75 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
76 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
78 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
79 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
82 'Meta': {'ordering': "['-timestamp']", 'object_name': 'Spent'},
83 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
84 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
85 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86 'timestamp': ('django.db.models.fields.DateField', [], {})
90 complete_apps = ['funding']