-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update max_length for phone numbers to adhere to ITU-T E.164 standard (…
…#2138) * Update max_length for phone numbers to adhere to ITU-T E.164 standard * Clean up an empty line * Adds missing migrations --------- Co-authored-by: rithviknishad <[email protected]> Co-authored-by: Vignesh Hari <[email protected]>
- Loading branch information
1 parent
1cb7a29
commit ee2f148
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
care/facility/migrations/0430_alter_asset_support_phone.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,27 @@ | ||
# Generated by Django 4.2.8 on 2024-05-09 14:11 | ||
|
||
from django.db import migrations, models | ||
|
||
import care.utils.models.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0429_double_pain_scale"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="asset", | ||
name="support_phone", | ||
field=models.CharField( | ||
default="", | ||
max_length=15, | ||
validators=[ | ||
care.utils.models.validators.PhoneNumberValidator( | ||
types=("mobile", "landline", "support") | ||
) | ||
], | ||
), | ||
), | ||
] |
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