Skip to content

Commit 7eb105a

Browse files
committed
[UPDATE] migrate minor changes in models
1 parent 739faad commit 7eb105a

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Generated by Django 5.0.4 on 2024-04-30 13:49
2+
3+
import django.db.models.deletion
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("job", "0010_alter_jobtitle_other_names"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="job",
16+
name="company",
17+
field=models.ForeignKey(
18+
blank=True,
19+
limit_choices_to={"is_active": True},
20+
null=True,
21+
on_delete=django.db.models.deletion.CASCADE,
22+
related_name="jobs",
23+
to="job.company",
24+
verbose_name="company",
25+
),
26+
),
27+
migrations.AlterField(
28+
model_name="job",
29+
name="job_skills",
30+
field=models.ManyToManyField(
31+
limit_choices_to={"is_active": True},
32+
related_name="jobs",
33+
to="job.jobskill",
34+
verbose_name="job skills",
35+
),
36+
),
37+
migrations.AlterField(
38+
model_name="job",
39+
name="job_titles",
40+
field=models.ManyToManyField(
41+
limit_choices_to={"is_active": True, "parent__isnull": True},
42+
related_name="jobs",
43+
to="job.jobtitle",
44+
verbose_name="job titles",
45+
),
46+
),
47+
migrations.AlterField(
48+
model_name="job",
49+
name="location",
50+
field=models.ForeignKey(
51+
limit_choices_to={"is_active": True},
52+
on_delete=django.db.models.deletion.CASCADE,
53+
related_name="jobs",
54+
to="job.joblocation",
55+
verbose_name="location",
56+
),
57+
),
58+
]

0 commit comments

Comments
 (0)