Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikweb
Commits
49ae1641
Commit
49ae1641
authored
Sep 19, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
randomize order of elements in roll
parent
8568d596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
panikweb/views.py
panikweb/views.py
+2
-1
No files found.
panikweb/views.py
View file @
49ae1641
...
...
@@ -404,7 +404,8 @@ class Home(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
Home
,
self
).
get_context_data
(
**
kwargs
)
context
[
'sectionName'
]
=
"Home"
context
[
'focus'
]
=
NewsItem
.
objects
.
select_related
(
'category'
).
filter
(
focus
=
True
).
exclude
(
image__isnull
=
True
).
exclude
(
image__exact
=
''
).
order_by
(
'-date'
)[:
5
]
context
[
'focus'
]
=
NewsItem
.
objects
.
select_related
(
'category'
).
filter
(
focus
=
True
).
exclude
(
image__isnull
=
True
).
exclude
(
image__exact
=
''
).
order_by
(
'?'
)[:
5
]
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
,
creation_timestamp__gte
=
datetime
(
2013
,
9
,
13
)).
order_by
(
'title'
)
schedules
=
Schedule
.
objects
.
select_related
().
order_by
(
'datetime'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment