Skip to content

Commit bc31987

Browse files
committed
Update migration
Fix migration namefiles
1 parent db92a1e commit bc31987

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

landing/candidate/migrations/0028_keyword.py renamed to landing/candidate/migrations/0029_create_keyword.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ast import keyword
2+
from os import remove
23
from django.db import migrations, models
34
from candidate.models import Keyword
45

@@ -15,7 +16,7 @@ def remove_keywords(apps, schema_editor):
1516

1617
class Migration(migrations.Migration):
1718
dependencies = [
18-
('candidate', '0027_set_url_fields'),
19+
('candidate', '0028_candidatepage_show_social_media'),
1920
]
2021

2122
operations = [
@@ -29,4 +30,5 @@ class Migration(migrations.Migration):
2930
'verbose_name_plural': 'Social Media Keyword',
3031
},
3132
),
33+
migrations.RunPython(insert_keywords, remove_keywords)
3234
]

0 commit comments

Comments
 (0)