mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
91a5a7f051
- Remove 'varian't or ''revision' field - Part name must be unique across database
28 lines
727 B
Python
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',
|
|
),
|
|
]
|