mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Allow null values for StockItem.updated
- Just to make the tests run better
This commit is contained in:
parent
9e745d3e5f
commit
25e41b3fa2
18
InvenTree/stock/migrations/0016_auto_20190512_2119.py
Normal file
18
InvenTree/stock/migrations/0016_auto_20190512_2119.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2 on 2019-05-12 11:19
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stock', '0015_stockitem_delete_on_deplete'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='stockitem',
|
||||
name='updated',
|
||||
field=models.DateField(auto_now=True, null=True),
|
||||
),
|
||||
]
|
@ -211,7 +211,7 @@ class StockItem(models.Model):
|
||||
|
||||
quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)], default=1)
|
||||
|
||||
updated = models.DateField(auto_now=True)
|
||||
updated = models.DateField(auto_now=True, null=True)
|
||||
|
||||
# last time the stock was checked / counted
|
||||
stocktake_date = models.DateField(blank=True, null=True)
|
||||
|
Loading…
Reference in New Issue
Block a user