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

save revisions

parent ac9a4a98
No related branches found
No related tags found
2 merge requests!1027Release,!1026save revisions
Pipeline #18747 passed
......@@ -146,7 +146,7 @@ class PeopleGroupBlock(StructBlock):
class Meta:
icon = "group"
label = "Slug skupiny"
label = "Skupina osob"
template = "styleguide2/includes/organisms/cards/people_card_list.html"
def get_prep_value(self, value):
......
# Generated by Django 5.0.6 on 2024-06-20 12:43
from django.db import migrations
def update_revisions(apps, schema_editor):
from district.models import (
DistrictCrossroadPage,
DistrictCustomPage,
DistrictGeoFeatureCollectionPage,
DistrictGeoFeatureDetailPage
)
# We need the actual page models
# DistrictCrossroadPage = apps.get_model("district", "DistrictCrossroadPage")
# DistrictCustomPage = apps.get_model("district", "DistrictCustomPage")
# DistrictGeoFeatureCollectionPage = apps.get_model(
# "district", "DistrictGeoFeatureCollectionPage"
# )
# DistrictGeoFeatureDetailPage = apps.get_model(
# "district", "DistrictGeoFeatureDetailPage"
# )
for page_model in (
DistrictCrossroadPage,
DistrictCustomPage,
DistrictGeoFeatureCollectionPage,
DistrictGeoFeatureDetailPage,
):
for page_instance in page_model.objects.all():
try:
page_instance.save_revision().publish()
except Exception:
continue
class Migration(migrations.Migration):
dependencies = [
('district', '0236_alter_districtcrossroadpage_content_and_more'),
]
operations = [
migrations.RunPython(update_revisions)
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment