-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CU-8697qrm0k: unique constraint on models and model pack viewset
- Loading branch information
1 parent
04cd016
commit 47837d0
Showing
5 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
webapp/api/api/migrations/0085_alter_conceptdb_name_alter_dataset_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Generated by Django 5.1.4 on 2025-01-29 23:30 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0084_conceptdb_create_time_conceptdb_last_modified_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='conceptdb', | ||
name='name', | ||
field=models.CharField(blank=True, default='', max_length=100, unique=True, validators=[django.core.validators.RegexValidator('^[0-9a-zA-Z_-]*$', 'Only alpahanumeric characters, -, _ are allowed for CDB names')]), | ||
), | ||
migrations.AlterField( | ||
model_name='dataset', | ||
name='name', | ||
field=models.CharField(max_length=150, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='metacatmodel', | ||
name='name', | ||
field=models.CharField(help_text='The task name followed by the underlying model impl', max_length=100, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='metataskvalue', | ||
name='name', | ||
field=models.CharField(max_length=150, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='modelpack', | ||
name='name', | ||
field=models.TextField(unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='name', | ||
field=models.CharField(help_text='A name of the annotation project', max_length=150, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='projectgroup', | ||
name='name', | ||
field=models.CharField(help_text='A name of the annotation project', max_length=150, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters