|
@@ -0,0 +1,62 @@
|
|
1
|
+# -*- coding: utf-8 -*-
|
|
2
|
+from south.utils import datetime_utils as datetime
|
|
3
|
+from south.db import db
|
|
4
|
+from south.v2 import SchemaMigration
|
|
5
|
+from django.db import models
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+class Migration(SchemaMigration):
|
|
9
|
+
|
|
10
|
+ def forwards(self, orm):
|
|
11
|
+ # Deleting field 'WeightBased.upper_charge'
|
|
12
|
+ db.delete_column(u'shipping_weightbased', 'upper_charge')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+ def backwards(self, orm):
|
|
16
|
+ # Adding field 'WeightBased.upper_charge'
|
|
17
|
+ db.add_column(u'shipping_weightbased', 'upper_charge',
|
|
18
|
+ self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2),
|
|
19
|
+ keep_default=False)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+ models = {
|
|
23
|
+ u'address.country': {
|
|
24
|
+ 'Meta': {'ordering': "('-display_order', 'name')", 'object_name': 'Country'},
|
|
25
|
+ 'display_order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0', 'db_index': 'True'}),
|
|
26
|
+ 'is_shipping_country': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
|
|
27
|
+ 'iso_3166_1_a2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
|
|
28
|
+ 'iso_3166_1_a3': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '3', 'blank': 'True'}),
|
|
29
|
+ 'iso_3166_1_numeric': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'db_index': 'True'}),
|
|
30
|
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
31
|
+ 'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
32
|
+ },
|
|
33
|
+ u'shipping.orderanditemcharges': {
|
|
34
|
+ 'Meta': {'ordering': "['name']", 'object_name': 'OrderAndItemCharges'},
|
|
35
|
+ 'code': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
|
|
36
|
+ 'countries': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['address.Country']", 'null': 'True', 'blank': 'True'}),
|
|
37
|
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
38
|
+ 'free_shipping_threshold': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
|
|
39
|
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
40
|
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
41
|
+ 'price_per_item': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'}),
|
|
42
|
+ 'price_per_order': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'})
|
|
43
|
+ },
|
|
44
|
+ u'shipping.weightband': {
|
|
45
|
+ 'Meta': {'ordering': "['method', 'upper_limit']", 'object_name': 'WeightBand'},
|
|
46
|
+ 'charge': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
|
|
47
|
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
48
|
+ 'method': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bands'", 'to': u"orm['shipping.WeightBased']"}),
|
|
49
|
+ 'upper_limit': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '3'})
|
|
50
|
+ },
|
|
51
|
+ u'shipping.weightbased': {
|
|
52
|
+ 'Meta': {'ordering': "['name']", 'object_name': 'WeightBased'},
|
|
53
|
+ 'code': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
|
|
54
|
+ 'countries': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['address.Country']", 'null': 'True', 'blank': 'True'}),
|
|
55
|
+ 'default_weight': ('django.db.models.fields.DecimalField', [], {'default': "'0.000'", 'max_digits': '12', 'decimal_places': '3'}),
|
|
56
|
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
57
|
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
58
|
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
|
|
59
|
+ }
|
|
60
|
+ }
|
|
61
|
+
|
|
62
|
+ complete_apps = ['shipping']
|