summaryrefslogtreecommitdiff
path: root/app/photos
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos')
-rw-r--r--app/photos/views.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/photos/views.py b/app/photos/views.py
index 3edfccb..be97810 100644
--- a/app/photos/views.py
+++ b/app/photos/views.py
@@ -14,7 +14,15 @@ def gallery_list(request,page):
request.page_url = '/photos/%d/'
request.page = int(page)
qs = PhotoGallery.objects.all()
- return object_list(request, queryset=qs, template_name='archives/photos.html',extra_context={'page':page,})
+ try:
+ is_build = request.POST['builder']
+ extra_context={
+ 'page':page,
+ 'MEDIA_URL': settings.BAKED_MEDIA_URL
+ }
+ except:
+ extra_context={'page':page}
+ return object_list(request, queryset=qs, template_name='archives/photos.html',extra_context=extra_context)
def gallery(request,slug):
context = {