# HG changeset patch # User Brian Neal # Date 1428020267 18000 # Node ID 7fc4123fef70d0f4288039da2b29e2c28c102ae3 # Parent 27b38cc65ca401225cd318e5bbb661cfcbd5c932 Stop passing callable to queryset. This is now deprecated. The usage here was most likely a mistake that has worked all these years. This change was for upgrading to Django 1.7. diff -r 27b38cc65ca4 -r 7fc4123fef70 gigs/templatetags/gig_tags.py --- a/gigs/templatetags/gig_tags.py Thu Apr 02 19:03:46 2015 -0500 +++ b/gigs/templatetags/gig_tags.py Thu Apr 02 19:17:47 2015 -0500 @@ -15,7 +15,8 @@ @register.inclusion_tag('gigs/upcoming_gigs_tag.html') def upcoming_gigs(): - gigs = Gig.objects.filter(date__gte=datetime.date.today).select_related( + today = datetime.date.today() + gigs = Gig.objects.filter(date__gte=today).select_related( 'flyer', 'venue', 'venue__city', 'venue__city__state', 'venue__city__country').order_by('date')[:10]