diff options
Diffstat (limited to 'apps/photos/views.py')
-rw-r--r-- | apps/photos/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/photos/views.py b/apps/photos/views.py index 5b993b4..3edfccb 100644 --- a/apps/photos/views.py +++ b/apps/photos/views.py @@ -14,7 +14,7 @@ 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') + return object_list(request, queryset=qs, template_name='archives/photos.html',extra_context={'page':page,}) def gallery(request,slug): context = { @@ -43,7 +43,8 @@ def gallery_list_by_area(request,slug,page): context = { 'region': region, 'country_list': Country.objects.filter(visited=True), - 'region_list': Region.objects.all() + 'region_list': Region.objects.all(), + 'page': page } return object_list(request, queryset=qs, template_name='archives/photos.html', extra_context=context) |