diff --git a/backend/root/custom_classes/admin_classes.py b/backend/root/custom_classes/admin_classes.py index 15f7eee2b..0a5dec627 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 + # nosec mark_safe + return mark_safe(f'{obj}') 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, + ), + ), + ]