Skip to main content
Sign in
Snippets Groups Projects
Commit 496c2423 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

save revisions

parent 8d0aa1ce
No related branches found
No related tags found
2 merge requests!1047Uniweb redesign,!1045Uniweb redesign, minor district redesign fixes
...@@ -146,7 +146,7 @@ class PeopleGroupBlock(StructBlock): ...@@ -146,7 +146,7 @@ class PeopleGroupBlock(StructBlock):
class Meta: class Meta:
icon = "group" icon = "group"
label = "Slug skupiny" label = "Skupina osob"
template = "styleguide2/includes/organisms/cards/people_card_list.html" template = "styleguide2/includes/organisms/cards/people_card_list.html"
def get_prep_value(self, value): 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 to comment