Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Bug 680737] Use Review date for helpfulvotes chart revision flags

  • Loading branch information...
commit 0ed5b607f1e0a9f2577e81782b8de42c2b3fa2a8 1 parent dec39f2
@tgavankar tgavankar authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 apps/wiki/views.py
View
4 apps/wiki/views.py
@@ -809,12 +809,12 @@ def get_helpful_votes_async(request, document_slug):
for rev in Revision.objects.filter(pk__in=revisions,
created__gte=min_created,
created__lte=max_created):
- rdate = rev.created
+ rdate = rev.reviewed or rev.created
rev_data.append({
'x': 1000 * int(time.mktime(rdate.timetuple())),
# L10n: 'R' is the first letter of "Revision".
'title': _('R', 'revision_heading'),
- 'text': unicode(_('Revision %s')) % rdate
+ 'text': unicode(_('Revision %s')) % rev.created
#'url': 'http://www.google.com/' # Not supported yet
})
Please sign in to comment.
Something went wrong with that request. Please try again.