Commit 91985604 authored by Michal Čihař's avatar Michal Čihař

Do not store value as an attribute, not needed

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fc29002a
......@@ -182,7 +182,7 @@ class ChangesCSVView(ChangesView):
paginate_by = None
def get(self, request, *args, **kwargs):
self.object_list = self.get_queryset()
object_list = self.get_queryset()
# Always output in english
activate('en')
......@@ -195,7 +195,7 @@ class ChangesCSVView(ChangesView):
# Add header
writer.writerow(('timestamp', 'action', 'user', 'url'))
for change in self.object_list[:2000].iterator():
for change in object_list[:2000].iterator():
writer.writerow((
change.timestamp.isoformat(),
change.get_action_display().encode('utf8'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment