From 711eb2f8fd98a77c09f0fdcd2f203403e4315590 Mon Sep 17 00:00:00 2001 From: Nikita Manovich Date: Tue, 5 Feb 2019 23:31:28 +0300 Subject: [PATCH] Added contastrain for labels (name should be unique) --- .../migrations/0025_auto_20190205_2256.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cvat/apps/engine/migrations/0025_auto_20190205_2256.py diff --git a/cvat/apps/engine/migrations/0025_auto_20190205_2256.py b/cvat/apps/engine/migrations/0025_auto_20190205_2256.py new file mode 100644 index 000000000000..f6ac2ac4da9a --- /dev/null +++ b/cvat/apps/engine/migrations/0025_auto_20190205_2256.py @@ -0,0 +1,17 @@ +# Generated by Django 2.1.5 on 2019-02-05 19:56 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('engine', '0024_pluginoption'), + ] + + operations = [ + migrations.AlterUniqueTogether( + name='label', + unique_together={('task', 'name')}, + ), + ]