-
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.
feat:add/change some project_model fields after the review
- Loading branch information
1 parent
8d87dcb
commit 576f5b0
Showing
7 changed files
with
124 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
] | ||
|
||
LOCAL_APPS: list = [ | ||
"apps.general", | ||
"project", | ||
] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
BUSYNESS_LENGTH = 20 | ||
BUSYNESS_CHOICES = [ | ||
("full_time", "Полная занятость"), | ||
("part_time", "Частичная занятость"), | ||
] | ||
DAYS_IN_MONTH = 30 | ||
DESCRIPTION_LENGTH = 3000 | ||
LIST_PER_PAGE = 10 | ||
NAME_LENGTH = 100 | ||
STATUS_CHOICES = [ | ||
(1, "Набор открыт"), | ||
(2, "Набор закрыт"), | ||
] |
27 changes: 27 additions & 0 deletions
27
src/backend/project/migrations/0002_alter_specialist_options_alter_project_busyness.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 5.0.1 on 2024-02-07 14:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("project", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="specialist", | ||
options={ | ||
"verbose_name": "Специалист", | ||
"verbose_name_plural": "Специалисты", | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="busyness", | ||
field=models.IntegerField( | ||
choices=[(1, "Полная занятость"), (2, "Частичная занятость")], | ||
verbose_name="Занятость", | ||
), | ||
), | ||
] |
31 changes: 31 additions & 0 deletions
31
src/backend/project/migrations/0003_project_recruitment_status_alter_project_status.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,31 @@ | ||
# Generated by Django 5.0.1 on 2024-02-07 15:28 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("project", "0002_alter_specialist_options_alter_project_busyness"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="project", | ||
name="recruitment_status", | ||
field=models.IntegerField( | ||
choices=[(1, "Набор открыт"), (2, "Набор закрыт")], | ||
default=1, | ||
verbose_name="Статус набора участников", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="status", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="project.status", | ||
verbose_name="Статус проекта", | ||
), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
src/backend/project/migrations/0004_alter_project_busyness.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,19 @@ | ||
# Generated by Django 5.0.1 on 2024-02-07 15:34 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("project", "0003_project_recruitment_status_alter_project_status"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="project", | ||
name="busyness", | ||
field=models.IntegerField( | ||
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