Adde 'system' Field to StockItemTracking

This commit is contained in:
Oliver 2018-04-18 08:44:08 +10:00
parent a4621295a6
commit f1357cfb7c
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-17 22:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock', '0017_auto_20180417_1536'),
]
operations = [
migrations.AddField(
model_name='stockitemtracking',
name='system',
field=models.BooleanField(default=False),
),
]

View File

@ -215,6 +215,9 @@ class StockItemTracking(models.Model):
# Which user created this tracking entry?
user = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True)
# Was this tracking note auto-generated by the system?
system = models.BooleanField(default=False)
# TODO
# image = models.ImageField(upload_to=func, max_length=255, null=True, blank=True)