Mercurial > public > sg101
comparison potd/views.py @ 1107:977e76f7f736
POTD converted to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 06 Jul 2016 21:41:16 -0500 |
parents | e932f2ecd4a7 |
children |
comparison
equal
deleted
inserted
replaced
1106:2315707f582d | 1107:977e76f7f736 |
---|---|
12 def view(request): | 12 def view(request): |
13 potd = Current.objects.get_current_photo() | 13 potd = Current.objects.get_current_photo() |
14 return render(request, 'potd/view.html', { | 14 return render(request, 'potd/view.html', { |
15 'potd': potd, | 15 'potd': potd, |
16 'is_current': True, | 16 'is_current': True, |
17 'V3_DESIGN': True, | |
17 }) | 18 }) |
18 | 19 |
19 | 20 |
20 def archive(request, id): | 21 def archive(request, id): |
21 photo = get_object_or_404(Photo, pk=id) | 22 photo = get_object_or_404(Photo, pk=id) |
22 return render(request, 'potd/view.html', { | 23 return render(request, 'potd/view.html', { |
23 'potd': photo, | 24 'potd': photo, |
24 'is_current': False, | 25 'is_current': False, |
26 'V3_DESIGN': True, | |
25 }) | 27 }) |