Skip to content

Commit

Permalink
Fix pagination on source strings review
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Mar 4, 2015
1 parent 49a6f48 commit 56c4606
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion weblate/trans/views/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from django.utils.translation import ugettext as _
from django.views.decorators.http import require_POST
from django.contrib import messages
from urllib import urlencode

from weblate.trans.views.helper import get_subproject
from weblate.trans.models import Translation, Source
Expand Down Expand Up @@ -56,6 +57,9 @@ def review_source(request, project, subproject):
checksum = request.GET.get('checksum', '')
ignored = 'ignored' in request.GET
expand = False
query_string = {'type': rqtype}
if ignored:
query_string['ignored'] = 'true'

# Filter units:
if checksum:
Expand All @@ -82,7 +86,7 @@ def review_source(request, project, subproject):
'object': obj,
'source': source,
'page_obj': sources,
'rqtype': rqtype,
'query_string': urlencode(query_string),
'ignored': ignored,
'expand': expand,
'title': _('Review source strings in %s') % obj.__unicode__(),
Expand Down

0 comments on commit 56c4606

Please sign in to comment.