-
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.
Added fields phone, telegram, cover letter to incomes.
- Loading branch information
Ruzal
committed
Nov 18, 2023
1 parent
22a7156
commit bcdf51b
Showing
4 changed files
with
76 additions
and
14 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
24 changes: 24 additions & 0 deletions
24
backend/projects/migrations/0003_projectincomes_phone_projectincomes_telegram.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.2.6 on 2023-11-18 22:24 | ||
|
||
from django.db import migrations, models | ||
import projects.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('projects', '0002_project_admin_comments_alter_project_name_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='projectincomes', | ||
name='phone', | ||
field=models.CharField(blank=True, max_length=12, validators=[projects.validators.validate_phone_number], verbose_name='Телефон'), | ||
), | ||
migrations.AddField( | ||
model_name='projectincomes', | ||
name='telegram', | ||
field=models.CharField(blank=True, max_length=32, validators=[projects.validators.validate_telegram], 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