This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 5.2.16 on 2026-07-22 01:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
def disable_retired_brussels_mailboxes(apps, schema_editor):
|
||||
mailbox_connection = apps.get_model("sources", "MailboxConnection")
|
||||
mailbox_connection.objects.filter(
|
||||
platform__in=("eurobrussels", "brusselsjobs")
|
||||
).update(enabled=False)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sources', '0006_alter_mailboxconnection_platform'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(disable_retired_brussels_mailboxes, migrations.RunPython.noop),
|
||||
migrations.AlterField(
|
||||
model_name='mailboxconnection',
|
||||
name='platform',
|
||||
field=models.CharField(choices=[('vdab', 'VDAB'), ('indeed', 'Indeed'), ('linkedin', 'LinkedIn'), ('ictjob', 'ictjob.be'), ('jobat', 'Jobat'), ('stepstone', 'StepStone'), ('careerjet', 'Careerjet'), ('randstad', 'Randstad'), ('roberthalf', 'Robert Half')], max_length=24),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user