Skip to content
Snippets Groups Projects
Commit f7ca4c9d authored by Brian Moe's avatar Brian Moe
Browse files

refresh of limited "latest" page is now also limited

parent 9b4e51b3
No related branches found
No related tags found
No related merge requests found
......@@ -994,8 +994,10 @@ def latest(request):
if 'limited' in request.GET or 'limited' in request.POST:
limit = LimitedEvent
context['limited'] = 'limited'
else:
limit = lambda x: x
context['limited'] = 'notlimited'
context['form'] = form
context['rawquery'] = request.GET.get('query') or request.POST.get('query') or ""
......
......@@ -11,11 +11,7 @@
{% block jscript %}
{% if not error %}
{% if rawquery %}
<meta http-equiv="refresh" content="300;url={% url latest %}/?query={{rawquery|urlencode}}">
{% else %}
<meta http-equiv="refresh" content="300;url={% url latest %}">
{% endif %}
<meta http-equiv="refresh" content="300;url={% url latest %}/?query={{rawquery|urlencode}}&{{limited}}">
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment