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 model 'Payment'
12 db.create_table(u'getpaid_payment', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('amount', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=4)),
15 ('currency', self.gf('django.db.models.fields.CharField')(max_length=3)),
16 ('status', self.gf('django.db.models.fields.CharField')(default='new', max_length=20, db_index=True)),
17 ('backend', self.gf('django.db.models.fields.CharField')(max_length=50)),
18 ('created_on', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, db_index=True, blank=True)),
19 ('paid_on', self.gf('django.db.models.fields.DateTimeField')(default=None, null=True, db_index=True, blank=True)),
20 ('amount_paid', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=4)),
21 ('external_id', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True)),
22 ('description', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
23 ('order', self.gf('django.db.models.fields.related.ForeignKey')(related_name='payment', to=orm['shop.Order'])),
25 db.send_create_signal(u'getpaid', ['Payment'])
28 def backwards(self, orm):
29 # Deleting model 'Payment'
30 db.delete_table(u'getpaid_payment')
35 'Meta': {'ordering': "('-created_on',)", 'object_name': 'Payment'},
36 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '4'}),
37 'amount_paid': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '20', 'decimal_places': '4'}),
38 'backend': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
39 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
40 'currency': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
41 'description': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
42 'external_id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
43 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44 'order': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payment'", 'to': u"orm['shop.Order']"}),
45 'paid_on': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
46 'status': ('django.db.models.fields.CharField', [], {'default': "'new'", 'max_length': '20', 'db_index': 'True'})
49 'Meta': {'object_name': 'Category'},
50 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'slug_en': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
52 'slug_pl': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
53 'taxonomy': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
54 'title_en': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'}),
55 'title_pl': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'})
58 'Meta': {'ordering': "['-date']", 'object_name': 'Entry'},
59 '_body_en_rendered': ('django.db.models.fields.TextField', [], {}),
60 '_body_pl_rendered': ('django.db.models.fields.TextField', [], {}),
61 '_lead_en_rendered': ('django.db.models.fields.TextField', [], {}),
62 '_lead_pl_rendered': ('django.db.models.fields.TextField', [], {}),
63 'author': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
64 'author_email': ('django.db.models.fields.EmailField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
65 'body_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
66 'body_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
67 'body_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
68 'body_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
69 'canonical_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
70 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['migdal.Category']", 'null': 'True', 'blank': 'True'}),
71 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
72 'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
73 'first_published_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
76 'in_stream': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
77 'lead_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
78 'lead_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
79 'lead_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
80 'lead_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
81 'needed_en': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1', 'db_index': 'True'}),
82 'promo': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83 'published_at_en': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
84 'published_at_pl': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
85 'published_en': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86 'published_pl': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
87 'slug_en': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
88 'slug_pl': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
89 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
90 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
91 'type': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
94 'Meta': {'ordering': "['entry']", 'object_name': 'Offer'},
95 'cost_const': ('django.db.models.fields.DecimalField', [], {'max_digits': '6', 'decimal_places': '2'}),
96 'cost_per_item': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '6', 'decimal_places': '2'}),
97 'entry': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['migdal.Entry']", 'unique': 'True'}),
98 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '6', 'decimal_places': '2'})
102 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Order'},
103 'address': ('django.db.models.fields.TextField', [], {'db_index': 'True'}),
104 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'db_index': 'True'}),
105 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'items': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
107 'language_code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'}),
108 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
109 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['shop.Offer']"}),
110 'payed_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
114 complete_apps = ['getpaid']