-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from elixir-luxembourg/207-remove-unqiueness-…
…constraint-on-data-declaration-title 207 remove uniqueness constraint on data declaration title
- Loading branch information
Showing
5 changed files
with
40 additions
and
32 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
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
23 changes: 23 additions & 0 deletions
23
core/migrations/0023_remove_datadec_title_unq_constraint.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,23 @@ | ||
# Generated by Django 2.2.24 on 2021-07-28 20:59 | ||
|
||
import core.models.utils | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0022_elu_accession_null_constraint'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='datadeclaration', | ||
name='title', | ||
field=core.models.utils.TextFieldWithInputWidget(help_text='Title is a brief description for the data declaration. Think of how you - in the lab - refer to data from a particular source; use that as the title.', max_length=255, verbose_name='Title'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='datadeclaration', | ||
constraint=models.UniqueConstraint(fields=('title', 'dataset'), name='unique_title_dataset'), | ||
), | ||
] |
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