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

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