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 'Offer'
12 db.create_table('shop_offer', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('entry', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['migdal.Entry'])),
15 ('price', self.gf('django.db.models.fields.DecimalField')(max_digits=6, decimal_places=2)),
17 db.send_create_signal('shop', ['Offer'])
19 # Adding model 'Order'
20 db.create_table('shop_order', (
21 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22 ('offer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['shop.Offer'])),
23 ('name', self.gf('django.db.models.fields.CharField')(max_length=127, blank=True)),
24 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, db_index=True)),
25 ('address', self.gf('django.db.models.fields.TextField')(db_index=True)),
26 ('payed_at', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
27 ('language_code', self.gf('django.db.models.fields.CharField')(max_length=2, null=True, blank=True)),
29 db.send_create_signal('shop', ['Order'])
32 def backwards(self, orm):
33 # Deleting model 'Offer'
34 db.delete_table('shop_offer')
36 # Deleting model 'Order'
37 db.delete_table('shop_order')
42 'Meta': {'object_name': 'Category'},
43 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44 'slug_en': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
45 'slug_pl': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
46 'taxonomy': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
47 'title_en': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'}),
48 'title_pl': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'})
51 'Meta': {'ordering': "['-date']", 'object_name': 'Entry'},
52 '_body_en_rendered': ('django.db.models.fields.TextField', [], {}),
53 '_body_pl_rendered': ('django.db.models.fields.TextField', [], {}),
54 '_lead_en_rendered': ('django.db.models.fields.TextField', [], {}),
55 '_lead_pl_rendered': ('django.db.models.fields.TextField', [], {}),
56 'author': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
57 'author_email': ('django.db.models.fields.EmailField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
58 'body_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
59 'body_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
60 'body_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
61 'body_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
62 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['migdal.Category']", 'null': 'True', 'blank': 'True'}),
63 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
64 'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
65 'first_published_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
68 'in_stream': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
69 'lead_en': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
70 'lead_en_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
71 'lead_pl': ('markupfield.fields.MarkupField', [], {'null': 'True', 'rendered_field': 'True', 'blank': 'True'}),
72 'lead_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
73 'needed_en': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1', 'db_index': 'True'}),
74 'promo': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75 'published_at_en': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
76 'published_at_pl': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
77 'published_en': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78 'published_pl': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79 'slug_en': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
80 'slug_pl': ('migdal.fields.SlugNullField', [], {'max_length': '50', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
81 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
82 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
83 'type': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
86 'Meta': {'ordering': "['entry__title']", 'object_name': 'Offer'},
87 'entry': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['migdal.Entry']"}),
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '6', 'decimal_places': '2'})
92 'Meta': {'ordering': "['-payed_at']", 'object_name': 'Order'},
93 'address': ('django.db.models.fields.TextField', [], {'db_index': 'True'}),
94 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'db_index': 'True'}),
95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96 'language_code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'}),
97 'name': ('django.db.models.fields.CharField', [], {'max_length': '127', 'blank': 'True'}),
98 'offer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['shop.Offer']"}),
99 'payed_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
103 complete_apps = ['shop']