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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
e2ab5208
Commit
e2ab5208
authored
5 months ago
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
fix migration
parent
e907fa20
No related branches found
No related tags found
2 merge requests
!1309
Release
,
!1308
fix migration
Pipeline
#21007
passed
5 months ago
Stage: build
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/migrations/0319_auto_20250508_1642.py
+3
-0
3 additions, 0 deletions
district/migrations/0319_auto_20250508_1642.py
uniweb/migrations/0138_auto_20250508_1752.py
+3
-0
3 additions, 0 deletions
uniweb/migrations/0138_auto_20250508_1752.py
with
6 additions
and
0 deletions
district/migrations/0319_auto_20250508_1642.py
+
3
−
0
View file @
e2ab5208
...
@@ -11,6 +11,9 @@ def add_district_search_pages(apps, schema_editor):
...
@@ -11,6 +11,9 @@ def add_district_search_pages(apps, schema_editor):
if
DistrictSearchPage
.
objects
.
descendant_of
(
home_page
).
exists
():
if
DistrictSearchPage
.
objects
.
descendant_of
(
home_page
).
exists
():
unlive_page
=
DistrictSearchPage
.
objects
.
descendant_of
(
home_page
).
first
()
unlive_page
=
DistrictSearchPage
.
objects
.
descendant_of
(
home_page
).
first
()
if
unlive_page
is
None
:
continue
if
not
unlive_page
.
live
:
if
not
unlive_page
.
live
:
unlive_page
.
publish
()
unlive_page
.
publish
()
...
...
...
...
This diff is collapsed.
Click to expand it.
uniweb/migrations/0138_auto_20250508_1752.py
+
3
−
0
View file @
e2ab5208
...
@@ -11,6 +11,9 @@ def add_uniweb_search_pages(apps, schema_editor):
...
@@ -11,6 +11,9 @@ def add_uniweb_search_pages(apps, schema_editor):
if
UniwebSearchPage
.
objects
.
descendant_of
(
home_page
).
exists
():
if
UniwebSearchPage
.
objects
.
descendant_of
(
home_page
).
exists
():
unlive_page
=
UniwebSearchPage
.
objects
.
descendant_of
(
home_page
).
first
()
unlive_page
=
UniwebSearchPage
.
objects
.
descendant_of
(
home_page
).
first
()
if
unlive_page
is
None
:
continue
if
not
unlive_page
.
live
:
if
not
unlive_page
.
live
:
unlive_page
.
publish
()
unlive_page
.
publish
()
...
...
...
...
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
sign in
to comment