InvenTree/InvenTree/part/migrations/0006_auto_20190526_1215.py
Oliver Walters 91a5a7f051 Simplify part model
- Remove 'varian't or ''revision' field
- Part name must be unique across database
2019-05-26 12:16:57 +10:00

28 lines
727 B
Python

# Generated by Django 2.2 on 2019-05-26 02:15
import InvenTree.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('part', '0005_auto_20190526_1119'),
]
operations = [
migrations.AlterField(
model_name='part',
name='name',
field=models.CharField(help_text='Part name (must be unique)', max_length=100, unique=True, validators=[InvenTree.validators.validate_part_name]),
),
migrations.AlterUniqueTogether(
name='part',
unique_together=set(),
),
migrations.RemoveField(
model_name='part',
name='revision',
),
]