mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
commit
4de3445c58
@ -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
|
||||
|
||||
|
19
InvenTree/stock/migrations/0011_auto_20190502_0041.py
Normal file
19
InvenTree/stock/migrations/0011_auto_20190502_0041.py
Normal file
@ -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'),
|
||||
),
|
||||
]
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user