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
f19240a4
Commit
f19240a4
authored
2 years ago
by
Ondrej Rehounek
Browse files
Options
Downloads
Patches
Plain Diff
main: november updates vol. 4
parent
31861a4e
No related branches found
No related tags found
2 merge requests
!646
Release
,
!645
Feature/main november updates
Pipeline
#10397
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/models.py
+3
-1
3 additions, 1 deletion
main/models.py
with
3 additions
and
1 deletion
main/models.py
+
3
−
1
View file @
f19240a4
...
...
@@ -197,7 +197,9 @@ class MainHomePage(
region__isnull
=
False
).
order_by
(
"
-date
"
)[:
3
]
articles_for_article_section
=
MainArticlePage
.
objects
.
order_by
(
"
-date
"
)
articles_for_article_section
=
MainArticlePage
.
objects
.
filter
(
article_type
=
ARTICLE_TYPES
.
PRESS_RELEASE
).
order_by
(
"
-date
"
)
context
[
"
article_main
"
]
=
(
articles_for_article_section
[
0
]
if
articles_for_article_section
else
None
)
...
...
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