-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(programme,mailings): manage programme recipient groups
- Loading branch information
Showing
7 changed files
with
139 additions
and
43 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
28 changes: 28 additions & 0 deletions
28
mailings/migrations/0009_recipientgroup_programme_category_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,28 @@ | ||
# Generated by Django 4.1.7 on 2023-04-15 07:36 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("programme", "0117_programme_tracon2023_accessibility_warnings_and_more"), | ||
("mailings", "0008_auto_20161026_2343"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="recipientgroup", | ||
name="programme_category", | ||
field=models.ForeignKey( | ||
blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to="programme.category" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="recipientgroup", | ||
name="app_label", | ||
field=models.CharField( | ||
choices=[("labour", "Työvoima"), ("programme", "Ohjelma")], max_length=63, verbose_name="Sovellus" | ||
), | ||
), | ||
] |
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
45 changes: 45 additions & 0 deletions
45
programme/migrations/0118_alter_programme_photography_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,45 @@ | ||
# Generated by Django 4.1.7 on 2023-04-15 07:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("tracon2023", "0002_accessibilitywarning_timeslot"), | ||
("programme", "0117_programme_tracon2023_accessibility_warnings_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="programme", | ||
name="photography", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("please", "Please photograph my programme"), | ||
("okay", "It's OK to photograph my programme"), | ||
("nope", "Please do not photograph my programme"), | ||
], | ||
help_text="Our official photographers will try to cover all programmes whose hosts request their programmes to be photographed.", | ||
max_length=6, | ||
verbose_name="Photography of your prorgamme", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="programme", | ||
name="tracon2023_accessibility_warnings", | ||
field=models.ManyToManyField( | ||
blank=True, to="tracon2023.accessibilitywarning", verbose_name="Accessibility warnings" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="programme", | ||
name="tracon2023_content_warnings", | ||
field=models.TextField( | ||
blank=True, | ||
default="", | ||
help_text="We will print content warnings in the programme schedule in order to give our visitors the requisite information to make educated choices about programme. If your programme contains bright lights, loud noises, smoke or similar effects, please choose them above. Please include any other content warnings in the text field.", | ||
verbose_name="Content warnings", | ||
), | ||
), | ||
] |
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