diff --git a/.travis.yml b/.travis.yml index 37ad7c425c..17b4950914 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,8 @@ before_install: - make migrate script: + - git ls-files --exclude-standard --others + - test -z "$(git ls-files --exclude-standard --others)" - make coverage - make style diff --git a/InvenTree/stock/migrations/0011_auto_20190502_0041.py b/InvenTree/stock/migrations/0011_auto_20190502_0041.py new file mode 100644 index 0000000000..b540421de5 --- /dev/null +++ b/InvenTree/stock/migrations/0011_auto_20190502_0041.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2 on 2019-05-01 14:41 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + dependencies = [ + ('stock', '0010_auto_20190501_2344'), + ] + + operations = [ + migrations.AlterField( + model_name='stockitem', + name='uuid', + field=models.UUIDField(blank=True, default=uuid.uuid4, editable=False, help_text='Unique ID for the StockItem'), + ), + ] diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index cb0ad8aea4..1be1385f5f 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -127,7 +127,7 @@ class StockItem(models.Model): ] # UUID for generating QR codes - uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False) + uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False, help_text='Unique ID for the StockItem') # The 'master' copy of the part of which this stock item is an instance part = models.ForeignKey('part.Part', on_delete=models.CASCADE, related_name='locations')