Skip to content

Commit

Permalink
Add anonym field
Browse files Browse the repository at this point in the history
  • Loading branch information
FinemechanicPub committed May 17, 2024
1 parent 7648559 commit f337b18
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/feedback/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class ParticipationAdmin(admin.ModelAdmin):
list_display = (
"title",
"anonym",
"first_name",
"last_name",
"festival_year",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.25 on 2024-05-17 08:42

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('feedback', '0008_auto_20240427_0051'),
]

operations = [
migrations.AddField(
model_name='participationapplicationfestival',
name='anonym',
field=models.BooleanField(default=False, verbose_name='Анонимность'),
),
]
4 changes: 4 additions & 0 deletions apps/feedback/models/participation_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class ParticipationApplicationFestival(BaseModel):
max_length=50,
verbose_name="Фамилия",
)
anonym = models.BooleanField(
verbose_name="Анонимность",
default=False,
)
nickname = models.CharField(
max_length=30,
verbose_name="Псевдоним",
Expand Down

0 comments on commit f337b18

Please sign in to comment.