Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
2cbd7fcd
Commit
2cbd7fcd
authored
Aug 22, 2013
by
fred
Browse files
replacing tabs by spaces
parent
f68ab5a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
2cbd7fcd
...
...
@@ -162,7 +162,7 @@ class Home(TemplateView):
context
[
'newsImaged'
]
=
NewsItem
.
objects
.
all
().
exclude
(
image__isnull
=
True
).
exclude
(
image__exact
=
''
).
order_by
(
'-datetime'
)[:
3
]
context
[
'news'
]
=
NewsItem
.
objects
.
all
().
order_by
(
'-datetime'
)[:
60
]
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
).
order_by
(
'title'
)
context
[
'player'
]
=
audioPlayer
()
context
[
'player'
]
=
audioPlayer
()
return
context
home
=
Home
.
as_view
()
...
...
@@ -176,7 +176,7 @@ class News(TemplateView):
context
[
'news'
]
=
NewsItem
.
objects
.
all
().
order_by
(
'-datetime'
)[:
60
]
context
[
'categories'
]
=
NewsCategory
.
objects
.
all
()
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
).
order_by
(
'?'
)
context
[
'player'
]
=
audioPlayer
()
context
[
'player'
]
=
audioPlayer
()
return
context
news
=
News
.
as_view
()
...
...
@@ -196,8 +196,8 @@ class Listen(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
Listen
,
self
).
get_context_data
(
**
kwargs
)
context
[
'player'
]
=
audioPlayer
()
return
context
context
[
'player'
]
=
audioPlayer
()
return
context
listen
=
Listen
.
as_view
()
...
...
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