-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a migration file that alters the 'aws_id' field in the CloudInfor…
…mation model. The modification includes the addition of the 'validate_aws_id' validator to ensure AWS ID validity at the model level.
- Loading branch information
1 parent
88fae67
commit 1ce6f76
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
physionet-django/user/migrations/0057_alter_cloudinformation_aws_id.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,24 @@ | ||
# Generated by Django 4.1.10 on 2023-10-04 21:14 | ||
|
||
from django.db import migrations, models | ||
import user.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("user", "0056_remove_credentialreview_appears_correct_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="cloudinformation", | ||
name="aws_id", | ||
field=models.CharField( | ||
blank=True, | ||
default=None, | ||
max_length=60, | ||
null=True, | ||
validators=[user.validators.validate_aws_id], | ||
), | ||
), | ||
] |
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