Skip to content
Snippets Groups Projects
Commit 92760c7e authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix Opava people page

parent a4262a61
No related branches found
No related tags found
2 merge requests!1155Release,!1154fix Opava people page
Pipeline #19894 passed
# Generated by Django 5.0.7 on 2024-10-04 07:52
from django.db import migrations
def fix_opava_people_page(apps, schema_editor):
# DistrictPeoplePage = apps.get_model("district", "DistrictPeoplePage")
# NOTE: Can't have this for the save_revision() method
from district.models import DistrictPeoplePage
page = DistrictPeoplePage.objects.filter(id=2015).first()
if page is None:
return
page.content = page.content.get_prep_value()
page.save()
page.save_revision().publish()
class Migration(migrations.Migration):
dependencies = [
('district', '0292_districtoctopuspersonpage_originating_display'),
]
operations = [
migrations.RunPython(fix_opava_people_page)
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment