From 43fde1b4a9711b76e65fa1634a6a71e13940b401 Mon Sep 17 00:00:00 2001 From: magsyg Date: Sun, 17 Dec 2023 20:08:01 +0100 Subject: [PATCH] add migrations --- backend/root/custom_classes/admin_classes.py | 3 +- ...tion_norwegian_applicants_only_and_more.py | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 backend/samfundet/migrations/0024_recruitmentposition_norwegian_applicants_only_and_more.py diff --git a/backend/root/custom_classes/admin_classes.py b/backend/root/custom_classes/admin_classes.py index 15f7eee2b..c5f24d337 100644 --- a/backend/root/custom_classes/admin_classes.py +++ b/backend/root/custom_classes/admin_classes.py @@ -45,7 +45,8 @@ def user_link(self, obj: Contact) -> str: """ if obj: href = get_admin_url(obj=obj) - return mark_safe(f'{obj}') # nosec mark_safe + + return mark_safe(f'{obj}') # nosec B308 return None diff --git a/backend/samfundet/migrations/0024_recruitmentposition_norwegian_applicants_only_and_more.py b/backend/samfundet/migrations/0024_recruitmentposition_norwegian_applicants_only_and_more.py new file mode 100644 index 000000000..92da97300 --- /dev/null +++ b/backend/samfundet/migrations/0024_recruitmentposition_norwegian_applicants_only_and_more.py @@ -0,0 +1,46 @@ +# Generated by Django 5.0 on 2023-12-17 19:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("samfundet", "0023_billigevent_billigpricegroup_billigticketgroup_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="recruitmentposition", + name="norwegian_applicants_only", + field=models.BooleanField( + default=False, + help_text="Is this position only for Norwegian applicants?", + ), + ), + migrations.AlterField( + model_name="recruitmentposition", + name="default_admission_letter_en", + field=models.TextField( + blank=True, + help_text="Default admission letter for the position", + null=True, + ), + ), + migrations.AlterField( + model_name="recruitmentposition", + name="long_description_en", + field=models.TextField( + blank=True, help_text="Long description of the position", null=True + ), + ), + migrations.AlterField( + model_name="recruitmentposition", + name="short_description_en", + field=models.CharField( + blank=True, + help_text="Short description of the position", + max_length=100, + null=True, + ), + ), + ]