diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-01 00:31:02 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-01 00:31:02 +0300 |
commit | 0c6d66e7ced5f1c7843eba4221b08db79e56a021 (patch) | |
tree | c16473f761eb5d26d2a3d1a4ceb2f9f2875b44e4 /servo/migrations | |
parent | ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7 (diff) | |
download | Servo-0c6d66e7ced5f1c7843eba4221b08db79e56a021.tar.gz Servo-0c6d66e7ced5f1c7843eba4221b08db79e56a021.tar.bz2 Servo-0c6d66e7ced5f1c7843eba4221b08db79e56a021.zip |
Inventory bug fixes
and performance enhancements
Diffstat (limited to 'servo/migrations')
-rw-r--r-- | servo/migrations/0033_auto_20150930_0937.py | 100 | ||||
-rw-r--r-- | servo/migrations/0034_purchaseorderitem_sales_order.py | 19 | ||||
-rw-r--r-- | servo/migrations/0035_auto_20150930_2323.py | 24 | ||||
-rw-r--r-- | servo/migrations/0036_purchaseorderitem_purchase_order_ref.py | 19 | ||||
-rw-r--r-- | servo/migrations/0037_purchaseorderitem_user_fullname.py | 19 |
5 files changed, 181 insertions, 0 deletions
diff --git a/servo/migrations/0033_auto_20150930_0937.py b/servo/migrations/0033_auto_20150930_0937.py new file mode 100644 index 0000000..158501d --- /dev/null +++ b/servo/migrations/0033_auto_20150930_0937.py @@ -0,0 +1,100 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import servo.lib.shorturl + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0032_auto_20150929_1101'), + ] + + operations = [ + migrations.AlterField( + model_name='product', + name='code', + field=models.CharField(default=servo.lib.shorturl.from_time, unique=True, max_length=32, verbose_name='Code'), + ), + migrations.AlterField( + model_name='product', + name='component_code', + field=models.CharField(default=b'', max_length=1, verbose_name='Component group', blank=True, choices=[(b'0', b'General'), (b'1', b'Visual'), (b'2', b'Displays'), (b'3', b'Mass Storage'), (b'4', b'Input Devices'), (b'5', b'Boards'), (b'6', b'Power'), (b'7', b'Printer'), (b'8', b'Multi-function Device'), (b'9', b'Communication Devices'), (b'A', b'Share'), (b'B', b'iPhone'), (b'E', b'iPod'), (b'F', b'iPad'), (b'G', b'Beats Products'), (b'W', b'Apple Watch')]), + ), + migrations.AlterField( + model_name='product', + name='device_models', + field=models.ManyToManyField(to='servo.DeviceGroup', verbose_name='Device models', blank=True), + ), + migrations.AlterField( + model_name='product', + name='is_serialized', + field=models.BooleanField(default=False, help_text='Product has a serial number', verbose_name='Is serialized'), + ), + migrations.AlterField( + model_name='product', + name='part_type', + field=models.CharField(default=b'OTHER', max_length=18, verbose_name='Part type', choices=[(b'ADJUSTMENT', 'Adjustment'), (b'MODULE', 'Module'), (b'REPLACEMENT', 'Replacement'), (b'SERVICE', 'Service'), (b'SERVICE CONTRACT', 'Service Contract'), (b'OTHER', 'Other')]), + ), + migrations.AlterField( + model_name='product', + name='photo', + field=models.ImageField(upload_to=b'products', null=True, verbose_name='Photo', blank=True), + ), + migrations.AlterField( + model_name='product', + name='shipping', + field=models.FloatField(default=0, verbose_name='Shipping'), + ), + migrations.AlterField( + model_name='purchaseorder', + name='carrier', + field=models.CharField(max_length=32, verbose_name='Carrier', blank=True), + ), + migrations.AlterField( + model_name='purchaseorder', + name='confirmation', + field=models.CharField(default=b'', max_length=32, verbose_name='Confirmation', blank=True), + ), + migrations.AlterField( + model_name='purchaseorder', + name='days_delivered', + field=models.IntegerField(default=1, verbose_name='Delivery Time', blank=True), + ), + migrations.AlterField( + model_name='purchaseorder', + name='reference', + field=models.CharField(default=b'', max_length=32, verbose_name='Reference', blank=True), + ), + migrations.AlterField( + model_name='purchaseorder', + name='supplier', + field=models.CharField(max_length=32, verbose_name='Supplier', blank=True), + ), + migrations.AlterField( + model_name='purchaseorder', + name='tracking_id', + field=models.CharField(max_length=128, verbose_name='Tracking ID', blank=True), + ), + migrations.AlterField( + model_name='user', + name='locale', + field=models.CharField(default=b'da_DK.UTF-8', help_text='Select which language you want to use Servo in.', max_length=32, verbose_name='Language', choices=[(b'da_DK.UTF-8', 'Danish'), (b'nl_NL.UTF-8', 'Dutch'), (b'en_US.UTF-8', 'English'), (b'et_EE.UTF-8', 'Estonian'), (b'fi_FI.UTF-8', 'Finnish'), (b'sv_SE.UTF-8', 'Swedish')]), + ), + migrations.AlterField( + model_name='user', + name='notify_by_email', + field=models.BooleanField(default=False, help_text='Event notifications will also be emailed to you.', verbose_name='Email notifications'), + ), + migrations.AlterField( + model_name='user', + name='photo', + field=models.ImageField(help_text='Maximum avatar size is 1MB', upload_to=b'avatars', null=True, verbose_name='Photo', blank=True), + ), + migrations.AlterField( + model_name='user', + name='tech_id', + field=models.CharField(default=b'', max_length=16, verbose_name='Tech ID', blank=True), + ), + ] diff --git a/servo/migrations/0034_purchaseorderitem_sales_order.py b/servo/migrations/0034_purchaseorderitem_sales_order.py new file mode 100644 index 0000000..8ac0fa8 --- /dev/null +++ b/servo/migrations/0034_purchaseorderitem_sales_order.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0033_auto_20150930_0937'), + ] + + operations = [ + migrations.AddField( + model_name='purchaseorderitem', + name='sales_order', + field=models.ForeignKey(editable=False, to='servo.Order', null=True, verbose_name='Sales Order'), + ), + ] diff --git a/servo/migrations/0035_auto_20150930_2323.py b/servo/migrations/0035_auto_20150930_2323.py new file mode 100644 index 0000000..bf4cd40 --- /dev/null +++ b/servo/migrations/0035_auto_20150930_2323.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0034_purchaseorderitem_sales_order'), + ] + + operations = [ + migrations.AddField( + model_name='purchaseorderitem', + name='sales_order_ref', + field=models.CharField(default=b'', max_length=8, editable=False), + ), + migrations.AlterField( + model_name='purchaseorderitem', + name='sales_order', + field=models.ForeignKey(editable=False, to='servo.Order', null=True), + ), + ] diff --git a/servo/migrations/0036_purchaseorderitem_purchase_order_ref.py b/servo/migrations/0036_purchaseorderitem_purchase_order_ref.py new file mode 100644 index 0000000..f8d3cc7 --- /dev/null +++ b/servo/migrations/0036_purchaseorderitem_purchase_order_ref.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0035_auto_20150930_2323'), + ] + + operations = [ + migrations.AddField( + model_name='purchaseorderitem', + name='purchase_order_ref', + field=models.CharField(default=b'', max_length=32, editable=False), + ), + ] diff --git a/servo/migrations/0037_purchaseorderitem_user_fullname.py b/servo/migrations/0037_purchaseorderitem_user_fullname.py new file mode 100644 index 0000000..0e5993f --- /dev/null +++ b/servo/migrations/0037_purchaseorderitem_user_fullname.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('servo', '0036_purchaseorderitem_purchase_order_ref'), + ] + + operations = [ + migrations.AddField( + model_name='purchaseorderitem', + name='user_fullname', + field=models.CharField(default=b'', max_length=256, editable=False), + ), + ] |