fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
outstanding migrations
[wolnelektury.git]
/
src
/
waiter
/
views.py
diff --git
a/src/waiter/views.py
b/src/waiter/views.py
index
b951cc4
..
836534e
100644
(file)
--- a/
src/waiter/views.py
+++ b/
src/waiter/views.py
@@
-14,11
+14,15
@@
from django.views.decorators.cache import never_cache
def wait(request, path):
if WaitedFile.exists(path):
file_url = join(WAITER_URL, path)
def wait(request, path):
if WaitedFile.exists(path):
file_url = join(WAITER_URL, path)
+ waiting = None
else:
else:
- file_url =
""
+ file_url =
None
waiting = get_object_or_404(WaitedFile, path=path)
if request.is_ajax():
return HttpResponse(file_url)
else:
waiting = get_object_or_404(WaitedFile, path=path)
if request.is_ajax():
return HttpResponse(file_url)
else:
- return render(request, "waiter/wait.html", locals())
+ return render(request, "waiter/wait.html", {
+ 'waiting': waiting,
+ 'file_url': file_url,
+ })