-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Поправил ошибки с отоббражение избранного профиля, так же п…
…оработал с очисткой хтмл
- Loading branch information
1 parent
0c0efd1
commit 1f34895
Showing
7 changed files
with
140 additions
and
31 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
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
46 changes: 46 additions & 0 deletions
46
src/backend/apps/profile/migrations/0011_alter_profile_about_alter_profile_name.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,46 @@ | ||
# Generated by Django 5.0.1 on 2025-01-06 11:38 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("profile", "0010_add_trigramextension"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="profile", | ||
name="about", | ||
field=models.TextField( | ||
blank=True, | ||
max_length=1500, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Введите кириллицу или латиницу", | ||
regex="^[\\wа-яА-ЯёЁ0-9\\s<>,.?!'\\\"/\\-+:;@#\\$%\\^&\\*\\(\\)\\[\\]\\{\\}]*$|^<.*>$", | ||
), | ||
django.core.validators.MinLengthValidator(limit_value=20), | ||
], | ||
verbose_name="О себе", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="profile", | ||
name="name", | ||
field=models.CharField( | ||
max_length=30, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Введите кириллицу или латиницу", | ||
regex="^[a-zA-Zа-яА-ЯёЁ-]+$", | ||
), | ||
django.core.validators.MinLengthValidator( | ||
limit_value=2, message="Должно быть минимум символов" | ||
), | ||
], | ||
verbose_name="Имя", | ||
), | ||
), | ||
] |
60 changes: 60 additions & 0 deletions
60
src/backend/apps/projects/migrations/0021_alter_invitationtoproject_answer_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,60 @@ | ||
# Generated by Django 5.0.1 on 2025-01-06 11:38 | ||
|
||
import apps.general.fields | ||
import django.core.validators | ||
import re | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"projects", | ||
"0020_remove_invitationtoproject_projects_invitationtoproject_unique_request_per_project_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="invitationtoproject", | ||
name="answer", | ||
field=apps.general.fields.BaseTextField( | ||
blank=True, | ||
max_length=750, | ||
null=True, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
flags=re.RegexFlag["IGNORECASE"], | ||
message="Поле может содержать: кириллические и латинские символы, цифры и спецсимовлы -!#$%%&'*+/=?^_;():@,.<>`{}~«»", | ||
regex="(^[-%!#$&*'+/=?^_;():@,.<>`{|}~\\\"\\\\\\-«»0-9A-ZА-ЯЁ\\s]+)\\Z", | ||
), | ||
django.core.validators.MinLengthValidator( | ||
limit_value=5, | ||
message="Длина поля от 5 до 750 символов.", | ||
), | ||
], | ||
verbose_name="Ответ", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="participationrequest", | ||
name="answer", | ||
field=apps.general.fields.BaseTextField( | ||
blank=True, | ||
max_length=750, | ||
null=True, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
flags=re.RegexFlag["IGNORECASE"], | ||
message="Поле может содержать: кириллические и латинские символы, цифры и спецсимовлы -!#$%%&'*+/=?^_;():@,.<>`{}~«»", | ||
regex="(^[-%!#$&*'+/=?^_;():@,.<>`{|}~\\\"\\\\\\-«»0-9A-ZА-ЯЁ\\s]+)\\Z", | ||
), | ||
django.core.validators.MinLengthValidator( | ||
limit_value=5, | ||
message="Длина поля от 5 до 750 символов.", | ||
), | ||
], | ||
verbose_name="Ответ", | ||
), | ||
), | ||
] |
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