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
bef0aae7
Commit
bef0aae7
authored
Aug 31, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
performance: archive view
(92 queries → 15)
parent
edc37b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
panikweb/views.py
panikweb/views.py
+1
-1
No files found.
panikweb/views.py
View file @
bef0aae7
...
...
@@ -392,7 +392,7 @@ class Archives(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
Archives
,
self
).
get_context_data
(
**
kwargs
)
context
[
'sectionName'
]
=
"Emissions"
context
[
'emissions'
]
=
Emission
.
objects
.
all
(
).
filter
(
archived
=
True
).
order_by
(
'title'
)
context
[
'emissions'
]
=
Emission
.
objects
.
prefetch_related
(
'categories'
).
filter
(
archived
=
True
).
order_by
(
'title'
)
return
context
archives
=
Archives
.
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