Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
d4e79caa
Commit
d4e79caa
authored
10 months ago
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
save revisions
parent
ac9a4a98
No related branches found
No related tags found
2 merge requests
!1027
Release
,
!1026
save revisions
Pipeline
#18747
passed
10 months ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/blocks.py
+1
-1
1 addition, 1 deletion
district/blocks.py
district/migrations/0237_auto_20240620_1443.py
+46
-0
46 additions, 0 deletions
district/migrations/0237_auto_20240620_1443.py
with
47 additions
and
1 deletion
district/blocks.py
+
1
−
1
View file @
d4e79caa
...
...
@@ -146,7 +146,7 @@ class PeopleGroupBlock(StructBlock):
class
Meta
:
icon
=
"
group
"
label
=
"
S
lug skupiny
"
label
=
"
S
kupina osob
"
template
=
"
styleguide2/includes/organisms/cards/people_card_list.html
"
def
get_prep_value
(
self
,
value
):
...
...
This diff is collapsed.
Click to expand it.
district/migrations/0237_auto_20240620_1443.py
0 → 100644
+
46
−
0
View file @
d4e79caa
# 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
)
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment