-
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.
Merge branch 'develop' into add/filter-for-profile
- Loading branch information
Showing
7 changed files
with
215 additions
and
54 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
29 changes: 29 additions & 0 deletions
29
src/backend/apps/profile/migrations/0009_alter_profile_about.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,29 @@ | ||
# Generated by Django 5.0.1 on 2024-10-04 21:05 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("profile", "0008_alter_profile_portfolio_link"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="profile", | ||
name="about", | ||
field=models.TextField( | ||
blank=True, | ||
max_length=1500, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Введите кириллицу или латиницу", | ||
regex="(^[\\Wa-zа-яё0-9\\s]+)\\Z", | ||
), | ||
django.core.validators.MinLengthValidator(limit_value=20), | ||
], | ||
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
133 changes: 133 additions & 0 deletions
133
src/backend/apps/projects/migrations/0018_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,133 @@ | ||
# Generated by Django 5.0.1 on 2024-10-04 21:05 | ||
|
||
import apps.general.fields | ||
import django.core.validators | ||
import re | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("projects", "0017_alter_project_participants"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="invitationtoproject", | ||
name="answer", | ||
field=apps.general.fields.BaseTextField( | ||
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="invitationtoproject", | ||
name="cover_letter", | ||
field=apps.general.fields.BaseTextField( | ||
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( | ||
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="cover_letter", | ||
field=apps.general.fields.BaseTextField( | ||
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="project", | ||
name="description", | ||
field=models.TextField( | ||
max_length=1500, | ||
null=True, | ||
validators=[ | ||
django.core.validators.MinLengthValidator( | ||
limit_value=20, | ||
message="Длина поля от 20 до 1500 символов.", | ||
), | ||
django.core.validators.RegexValidator( | ||
flags=re.RegexFlag["IGNORECASE"], | ||
message="Описание может содержать: кириллические и латинские буквы, цифры и специальные символы.", | ||
regex="(^[\\Wa-zа-яё0-9\\s]+)\\Z", | ||
), | ||
], | ||
verbose_name="Описание", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="name", | ||
field=models.CharField( | ||
max_length=100, | ||
validators=[ | ||
django.core.validators.MinLengthValidator( | ||
limit_value=5, | ||
message="Длина поля от 5 до 100 символов.", | ||
), | ||
django.core.validators.RegexValidator( | ||
message="Название проекта может содержать: кириллические и латинские символы, цифры и символы .,-—+_/:", | ||
regex="(^[+/_:,.0-9A-Za-zА-Яа-яЁё\\s\\-–—]+)\\Z", | ||
), | ||
], | ||
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