-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change question type display in admin (#260)
* change question type display in admin * some fix --------- Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>
- Loading branch information
1 parent
df7b67f
commit 7cfae55
Showing
6 changed files
with
70 additions
and
23 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
36 changes: 36 additions & 0 deletions
36
src/bot/migrations/0006_alter_fundprogram_short_description_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,36 @@ | ||
# Generated by Django 4.2.4 on 2023-09-01 10:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("bot", "0005_alter_coordinator_email_address_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="fundprogram", | ||
name="short_description", | ||
field=models.CharField( | ||
help_text="Введите название кнопки в боте для данной программы", | ||
max_length=20, | ||
verbose_name="Текст на кнопке", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="question", | ||
name="question_type", | ||
field=models.CharField( | ||
choices=[ | ||
("LEGAL_ASSISTANCE", "Юридическая помощь"), | ||
("SOCIAL_ASSISTANCE", "Социальная помощь"), | ||
("PSYCHOLOGICAL_ASSISTANCE", "Психологическая помощь"), | ||
], | ||
default="LEGAL_ASSISTANCE", | ||
help_text="Выберите тип помощи для вопроса", | ||
max_length=100, | ||
verbose_name="Тип вопроса", | ||
), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
src/bot/migrations/0007_alter_question_short_description.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,23 @@ | ||
# Generated by Django 4.2.4 on 2023-09-01 15:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
"""Migrations for bot.""" | ||
|
||
dependencies = [ | ||
("bot", "0006_alter_fundprogram_short_description_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="question", | ||
name="short_description", | ||
field=models.CharField( | ||
help_text="Введите название кнопки в боте для данного вопроса", | ||
max_length=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
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