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 'Payment.external_id'
12 db.add_column(u'getpaid_payment', 'external_id',
13 self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True),
16 # Adding field 'Payment.description'
17 db.add_column(u'getpaid_payment', 'description',
18 self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True),
22 def backwards(self, orm):
23 # Deleting field 'Payment.external_id'
24 db.delete_column(u'getpaid_payment', 'external_id')
26 # Deleting field 'Payment.description'
27 db.delete_column(u'getpaid_payment', 'description')
32 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
33 '_related_info': ('jsonfield.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
34 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
35 'common_slug': ('django.db.models.fields.SlugField', [], {'max_length': '120'}),
36 'cover': ('catalogue.fields.EbookField', [], {'max_length': '100', 'null': 'True', 'format_name': "'cover'", 'blank': 'True'}),
37 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
38 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
39 'epub_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'epub'", 'blank': 'True'}),
40 'extra_info': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
41 'fb2_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'fb2'", 'blank': 'True'}),
42 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
43 'html_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'html'", 'blank': 'True'}),
44 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45 'language': ('django.db.models.fields.CharField', [], {'default': "'pol'", 'max_length': '3', 'db_index': 'True'}),
46 'mobi_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'mobi'", 'blank': 'True'}),
47 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
48 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
49 'pdf_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'pdf'", 'blank': 'True'}),
50 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
51 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
52 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
53 'txt_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'txt'", 'blank': 'True'}),
54 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
55 'xml_file': ('catalogue.fields.EbookField', [], {'default': "''", 'max_length': '100', 'format_name': "'xml'", 'blank': 'True'})
58 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Funding'},
59 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
60 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
61 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
63 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']"}),
64 'payed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
65 'perks': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['funding.Perk']", 'symmetrical': 'False', 'blank': 'True'})
68 'Meta': {'ordering': "['-end']", 'object_name': 'Offer'},
69 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
70 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']", 'null': 'True', 'blank': 'True'}),
71 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
72 'due': ('django.db.models.fields.DateField', [], {}),
73 'end': ('django.db.models.fields.DateField', [], {}),
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'redakcja_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
76 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
77 'start': ('django.db.models.fields.DateField', [], {}),
78 'target': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
79 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
82 'Meta': {'ordering': "['-price']", 'object_name': 'Perk'},
83 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
84 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
85 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
87 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['funding.Offer']", 'null': 'True', 'blank': 'True'}),
88 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'})
91 'Meta': {'ordering': "('-created_on',)", 'object_name': 'Payment'},
92 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '4'}),
93 'amount_paid': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '20', 'decimal_places': '4'}),
94 'backend': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
95 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
96 'currency': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
97 'description': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
98 'external_id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
99 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100 'order': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payment'", 'to': u"orm['funding.Funding']"}),
101 'paid_on': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
102 'status': ('django.db.models.fields.CharField', [], {'default': "'new'", 'max_length': '20', 'db_index': 'True'})
106 complete_apps = ['getpaid']