Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Bug 1104124 - Don't iterate over tags but query tag names as a list d…
Browse files Browse the repository at this point in the history
…irectly.
  • Loading branch information
jezdez committed Feb 11, 2015
1 parent 90ff296 commit dbcccb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kuma/wiki/kumascript.py
Expand Up @@ -154,9 +154,10 @@ def get(document, cache_control, base_url, timeout=None):
files=files,
attachments=files, # Just for sake of verbiage?
slug=document.slug,
tags=[x.name for x in document.tags.all()],
review_tags=[x.name for x in
document.current_revision.review_tags.all()],
tags=list(document.tags.values_list('name', flat=True)),
review_tags=list(document.current_revision
.review_tags
.values_list('name', flat=True)),
modified=time.mktime(document.modified.timetuple()),
cache_control=cache_control,
)
Expand Down

0 comments on commit dbcccb9

Please sign in to comment.