comparison bandmap/views.py @ 1109:bb7e2fc24690

Convert bandmap to V3 design.
author Brian Neal <bgneal@gmail.com>
date Sun, 10 Jul 2016 21:42:08 -0500
parents 09ed84a7394c
children
comparison
equal deleted inserted replaced
1108:7fd997285c9e 1109:bb7e2fc24690
16 16
17 SUCCESS = u"Successfully submitted {} for admin review. Thanks!" 17 SUCCESS = u"Successfully submitted {} for admin review. Thanks!"
18 18
19 19
20 def map_view(request): 20 def map_view(request):
21 return render(request, 'bandmap/map.html') 21 return render(request, 'bandmap/map.html', {'V3_DESIGN': True})
22 22
23 23
24 @login_required 24 @login_required
25 def add_band(request): 25 def add_band(request):
26 """ 26 """
38 else: 38 else:
39 form = BandForm() 39 form = BandForm()
40 40
41 return render(request, 'bandmap/add.html', { 41 return render(request, 'bandmap/add.html', {
42 'form': form, 42 'form': form,
43 'V3_DESIGN': True,
43 }) 44 })
44 45
45 46
46 def query(request): 47 def query(request):
47 """Retrieves the band map entries and returns them as JSON. 48 """Retrieves the band map entries and returns them as JSON.