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
Simon Daron
panikweb
Commits
d666242d
Commit
d666242d
authored
Sep 07, 2013
by
fred
Browse files
fix emission archives page, do not mix class and function names
parent
dc827aa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
d666242d
...
...
@@ -455,14 +455,16 @@ class Emissions(TemplateView):
emissions
=
Emissions
.
as_view
()
class
e
missionsArchives
(
TemplateView
):
class
E
missionsArchives
(
TemplateView
):
template_name
=
'emissions/archives.html'
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
e
missionsArchives
,
self
).
get_context_data
(
**
kwargs
)
context
=
super
(
E
missionsArchives
,
self
).
get_context_data
(
**
kwargs
)
context
[
'sectionName'
]
=
"Emissions"
context
[
'emissions'
]
=
Emission
.
objects
.
prefetch_related
(
'categories'
).
filter
(
archived
=
True
).
order_by
(
'title'
)
return
context
emissionsArchives
=
emissionsArchives
.
as_view
()
emissionsArchives
=
EmissionsArchives
.
as_view
()
class
Get
(
TemplateView
):
template_name
=
'get.html'
...
...
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