comparison band/views.py @ 180:312f198e8958

Changes for Django 1.8.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:04:43 -0600
parents 2db040e89285
children
comparison
equal deleted inserted replaced
179:574cdd0241af 180:312f198e8958
43 43
44 def buy(request): 44 def buy(request):
45 albums = Album.objects.all().order_by('-id') 45 albums = Album.objects.all().order_by('-id')
46 merchandise = Merchandise.objects.all().order_by('-id') 46 merchandise = Merchandise.objects.all().order_by('-id')
47 return render(request, 'band/buy.html', { 47 return render(request, 'band/buy.html', {
48 'albums': albums, 48 'albums': albums,
49 'merchandise': merchandise, 49 'merchandise': merchandise,
50 }) 50 })
51 51
52 52
53 def contact(request): 53 def contact(request):
54 band = Member.objects.exclude(is_active=0).order_by('order') 54 band = Member.objects.exclude(is_active=0).order_by('order')