You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. # encoding: utf-8
  2. import datetime
  3. from south.db import db
  4. from south.v2 import SchemaMigration
  5. from django.db import models
  6. from oscar.core.compat import AUTH_USER_MODEL, AUTH_USER_MODEL_NAME
  7. class Migration(SchemaMigration):
  8. depends_on = (
  9. ('offer', '0001_initial'),
  10. ('order', '0001_initial'),
  11. )
  12. def forwards(self, orm):
  13. # Adding model 'Voucher'
  14. db.create_table('voucher_voucher', (
  15. ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  16. ('name', self.gf('django.db.models.fields.CharField')(max_length=128)),
  17. ('code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128, db_index=True)),
  18. ('usage', self.gf('django.db.models.fields.CharField')(default='Multi-use', max_length=128)),
  19. ('start_date', self.gf('django.db.models.fields.DateField')()),
  20. ('end_date', self.gf('django.db.models.fields.DateField')()),
  21. ('num_basket_additions', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
  22. ('num_orders', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
  23. ('total_discount', self.gf('django.db.models.fields.DecimalField')(default='0.00', max_digits=12, decimal_places=2)),
  24. ('date_created', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
  25. ))
  26. db.send_create_signal('voucher', ['Voucher'])
  27. # Adding M2M table for field offers on 'Voucher'
  28. db.create_table('voucher_voucher_offers', (
  29. ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  30. ('voucher', models.ForeignKey(orm['voucher.voucher'], null=False)),
  31. ('conditionaloffer', models.ForeignKey(orm['offer.conditionaloffer'], null=False))
  32. ))
  33. db.create_unique('voucher_voucher_offers', ['voucher_id', 'conditionaloffer_id'])
  34. # Adding model 'VoucherApplication'
  35. db.create_table('voucher_voucherapplication', (
  36. ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  37. ('voucher', self.gf('django.db.models.fields.related.ForeignKey')(related_name='applications', to=orm['voucher.Voucher'])),
  38. ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[AUTH_USER_MODEL], null=True, blank=True)),
  39. ('order', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['order.Order'])),
  40. ('date_created', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
  41. ))
  42. db.send_create_signal('voucher', ['VoucherApplication'])
  43. def backwards(self, orm):
  44. # Deleting model 'Voucher'
  45. db.delete_table('voucher_voucher')
  46. # Removing M2M table for field offers on 'Voucher'
  47. db.delete_table('voucher_voucher_offers')
  48. # Deleting model 'VoucherApplication'
  49. db.delete_table('voucher_voucherapplication')
  50. models = {
  51. 'address.country': {
  52. 'Meta': {'ordering': "('-is_highlighted', 'name')", 'object_name': 'Country'},
  53. 'is_highlighted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
  54. 'is_shipping_country': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
  55. 'iso_3166_1_a2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
  56. 'iso_3166_1_a3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'db_index': 'True'}),
  57. 'iso_3166_1_numeric': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'db_index': 'True'}),
  58. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  59. 'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
  60. },
  61. 'auth.group': {
  62. 'Meta': {'object_name': 'Group'},
  63. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  64. 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  65. 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  66. },
  67. 'auth.permission': {
  68. 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
  69. 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  70. 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
  71. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  72. 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  73. },
  74. AUTH_USER_MODEL: {
  75. 'Meta': {'object_name': AUTH_USER_MODEL_NAME},
  76. 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  77. 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  78. 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  79. 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  80. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  81. 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
  82. 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  83. 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  84. 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  85. 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  86. 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  87. 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  88. 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  89. },
  90. 'basket.basket': {
  91. 'Meta': {'object_name': 'Basket'},
  92. 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  93. 'date_merged': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
  94. 'date_submitted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
  95. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  96. 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'baskets'", 'null': 'True', 'to': "orm['{0}']".format(AUTH_USER_MODEL)}),
  97. 'status': ('django.db.models.fields.CharField', [], {'default': "'Open'", 'max_length': '128'}),
  98. 'vouchers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['voucher.Voucher']", 'null': 'True', 'symmetrical': 'False'})
  99. },
  100. 'catalogue.attributeentity': {
  101. 'Meta': {'object_name': 'AttributeEntity'},
  102. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  103. 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  104. 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
  105. 'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': "orm['catalogue.AttributeEntityType']"})
  106. },
  107. 'catalogue.attributeentitytype': {
  108. 'Meta': {'object_name': 'AttributeEntityType'},
  109. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  110. 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  111. 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'})
  112. },
  113. 'catalogue.attributeoption': {
  114. 'Meta': {'object_name': 'AttributeOption'},
  115. 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'options'", 'to': "orm['catalogue.AttributeOptionGroup']"}),
  116. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  117. 'option': ('django.db.models.fields.CharField', [], {'max_length': '255'})
  118. },
  119. 'catalogue.attributeoptiongroup': {
  120. 'Meta': {'object_name': 'AttributeOptionGroup'},
  121. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  122. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
  123. },
  124. 'catalogue.category': {
  125. 'Meta': {'ordering': "['name']", 'object_name': 'Category'},
  126. 'depth': ('django.db.models.fields.PositiveIntegerField', [], {}),
  127. 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'db_index': 'True'}),
  128. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  129. 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
  130. 'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  131. 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
  132. 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '1024', 'db_index': 'True'})
  133. },
  134. 'catalogue.option': {
  135. 'Meta': {'object_name': 'Option'},
  136. 'code': ('django.db.models.fields.SlugField', [], {'max_length': '128', 'db_index': 'True'}),
  137. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  138. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  139. 'type': ('django.db.models.fields.CharField', [], {'default': "'Required'", 'max_length': '128'})
  140. },
  141. 'catalogue.product': {
  142. 'Meta': {'ordering': "['-date_created']", 'object_name': 'Product'},
  143. 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.ProductAttribute']", 'through': "orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
  144. 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Category']", 'through': "orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
  145. 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  146. 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
  147. 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
  148. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  149. 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'variants'", 'null': 'True', 'to': "orm['catalogue.Product']"}),
  150. 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductClass']", 'null': 'True'}),
  151. 'product_options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
  152. 'recommended_products': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Product']", 'symmetrical': 'False', 'through': "orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
  153. 'related_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'relations'", 'blank': 'True', 'to': "orm['catalogue.Product']"}),
  154. 'score': ('django.db.models.fields.FloatField', [], {'default': '0.0', 'db_index': 'True'}),
  155. 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
  156. 'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  157. 'upc': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'null': 'True', 'blank': 'True'})
  158. },
  159. 'catalogue.productattribute': {
  160. 'Meta': {'ordering': "['code']", 'object_name': 'ProductAttribute'},
  161. 'code': ('django.db.models.fields.SlugField', [], {'max_length': '128', 'db_index': 'True'}),
  162. 'entity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntityType']", 'null': 'True', 'blank': 'True'}),
  163. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  164. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  165. 'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOptionGroup']", 'null': 'True', 'blank': 'True'}),
  166. 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes'", 'null': 'True', 'to': "orm['catalogue.ProductClass']"}),
  167. 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  168. 'type': ('django.db.models.fields.CharField', [], {'default': "'text'", 'max_length': '20'})
  169. },
  170. 'catalogue.productattributevalue': {
  171. 'Meta': {'object_name': 'ProductAttributeValue'},
  172. 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductAttribute']"}),
  173. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  174. 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"}),
  175. 'value_boolean': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  176. 'value_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
  177. 'value_entity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntity']", 'null': 'True', 'blank': 'True'}),
  178. 'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
  179. 'value_integer': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
  180. 'value_option': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOption']", 'null': 'True', 'blank': 'True'}),
  181. 'value_richtext': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
  182. 'value_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
  183. },
  184. 'catalogue.productcategory': {
  185. 'Meta': {'ordering': "['-is_canonical']", 'object_name': 'ProductCategory'},
  186. 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Category']"}),
  187. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  188. 'is_canonical': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
  189. 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
  190. },
  191. 'catalogue.productclass': {
  192. 'Meta': {'ordering': "['name']", 'object_name': 'ProductClass'},
  193. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  194. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  195. 'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
  196. 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'})
  197. },
  198. 'catalogue.productrecommendation': {
  199. 'Meta': {'object_name': 'ProductRecommendation'},
  200. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  201. 'primary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_recommendations'", 'to': "orm['catalogue.Product']"}),
  202. 'ranking': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
  203. 'recommendation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
  204. },
  205. 'contenttypes.contenttype': {
  206. 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  207. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  208. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  209. 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  210. 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  211. },
  212. 'offer.benefit': {
  213. 'Meta': {'object_name': 'Benefit'},
  214. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  215. 'max_affected_items': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
  216. 'range': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
  217. 'type': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  218. 'value': ('oscar.models.fields.PositiveDecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})
  219. },
  220. 'offer.condition': {
  221. 'Meta': {'object_name': 'Condition'},
  222. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  223. 'range': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['offer.Range']"}),
  224. 'type': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  225. 'value': ('oscar.models.fields.PositiveDecimalField', [], {'max_digits': '12', 'decimal_places': '2'})
  226. },
  227. 'offer.conditionaloffer': {
  228. 'Meta': {'ordering': "['-priority']", 'object_name': 'ConditionalOffer'},
  229. 'benefit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['offer.Benefit']"}),
  230. 'condition': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['offer.Condition']"}),
  231. 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  232. 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
  233. 'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
  234. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  235. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  236. 'offer_type': ('django.db.models.fields.CharField', [], {'default': "'Site'", 'max_length': '128'}),
  237. 'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
  238. 'redirect_url': ('oscar.models.fields.ExtendedURLField', [], {'max_length': '200', 'blank': 'True'}),
  239. 'start_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
  240. 'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'})
  241. },
  242. 'offer.range': {
  243. 'Meta': {'object_name': 'Range'},
  244. 'classes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'classes'", 'blank': 'True', 'to': "orm['catalogue.ProductClass']"}),
  245. 'excluded_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'excludes'", 'blank': 'True', 'to': "orm['catalogue.Product']"}),
  246. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  247. 'included_categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'to': "orm['catalogue.Category']"}),
  248. 'included_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'to': "orm['catalogue.Product']"}),
  249. 'includes_all_products': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  250. 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
  251. },
  252. 'order.billingaddress': {
  253. 'Meta': {'object_name': 'BillingAddress'},
  254. 'country': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['address.Country']"}),
  255. 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  256. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  257. 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  258. 'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  259. 'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  260. 'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  261. 'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  262. 'postcode': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  263. 'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
  264. 'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  265. 'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'})
  266. },
  267. 'order.order': {
  268. 'Meta': {'ordering': "['-date_placed']", 'object_name': 'Order'},
  269. 'basket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['basket.Basket']", 'null': 'True', 'blank': 'True'}),
  270. 'billing_address': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['order.BillingAddress']", 'null': 'True', 'blank': 'True'}),
  271. 'date_placed': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
  272. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  273. 'number': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
  274. 'shipping_address': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['order.ShippingAddress']", 'null': 'True', 'blank': 'True'}),
  275. 'shipping_excl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
  276. 'shipping_incl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
  277. 'shipping_method': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
  278. 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}),
  279. 'status': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
  280. 'total_excl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
  281. 'total_incl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
  282. 'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'orders'", 'null': 'True', 'to': "orm['{0}']".format(AUTH_USER_MODEL)})
  283. },
  284. 'order.shippingaddress': {
  285. 'Meta': {'object_name': 'ShippingAddress'},
  286. 'country': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['address.Country']"}),
  287. 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  288. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  289. 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  290. 'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  291. 'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  292. 'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  293. 'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  294. 'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
  295. 'phone_number': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
  296. 'postcode': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  297. 'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
  298. 'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  299. 'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'})
  300. },
  301. 'sites.site': {
  302. 'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
  303. 'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  304. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  305. 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  306. },
  307. 'voucher.voucher': {
  308. 'Meta': {'object_name': 'Voucher'},
  309. 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
  310. 'date_created': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  311. 'end_date': ('django.db.models.fields.DateField', [], {}),
  312. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  313. 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  314. 'num_basket_additions': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  315. 'num_orders': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  316. 'offers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'vouchers'", 'symmetrical': 'False', 'to': "orm['offer.ConditionalOffer']"}),
  317. 'start_date': ('django.db.models.fields.DateField', [], {}),
  318. 'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'}),
  319. 'usage': ('django.db.models.fields.CharField', [], {'default': "'Multi-use'", 'max_length': '128'})
  320. },
  321. 'voucher.voucherapplication': {
  322. 'Meta': {'object_name': 'VoucherApplication'},
  323. 'date_created': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  324. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  325. 'order': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['order.Order']"}),
  326. 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['{0}']".format(AUTH_USER_MODEL), 'null': 'True', 'blank': 'True'}),
  327. 'voucher': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'applications'", 'to': "orm['voucher.Voucher']"})
  328. }
  329. }
  330. complete_apps = ['voucher']