2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Initial updates required to run under django 2.2

- Change to middleware.py
- Change some URLs formatting
- Fix django version at 2.2
This commit is contained in:
Oliver Walters
2019-04-12 20:44:22 +10:00
parent ceea053368
commit c67dc6f56e
6 changed files with 67 additions and 4 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 2.2 on 2019-04-12 10:30
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock', '0003_auto_20180510_1042'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
name='status',
field=models.PositiveIntegerField(choices=[(10, 'OK'), (50, 'Attention needed'), (55, 'Damaged'), (60, 'Destroyed')], default=10, validators=[django.core.validators.MinValueValidator(0)]),
),
]