mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Enforce uniqueness constraint
This commit is contained in:
19
InvenTree/part/migrations/0017_auto_20190505_0848.py
Normal file
19
InvenTree/part/migrations/0017_auto_20190505_0848.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 2.2 on 2019-05-04 22:48
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('part', '0016_partstar'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='partstar',
|
||||
unique_together={('part', 'user')},
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user