Skip to content

Commit

Permalink
add migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
magsyg committed Dec 17, 2023
1 parent ed59384 commit 43fde1b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/root/custom_classes/admin_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def user_link(self, obj: Contact) -> str:
"""
if obj:
href = get_admin_url(obj=obj)
return mark_safe(f'<a href="{href}">{obj}</a>') # nosec mark_safe

return mark_safe(f'<a href="{href}">{obj}</a>') # nosec B308
return None


Expand Down
Original file line number Diff line number Diff line change
@@ -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,
),
),
]

0 comments on commit 43fde1b

Please sign in to comment.