Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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