bgneal@44: """ bgneal@44: Urls for the gigs application. bgneal@44: bgneal@44: """ bgneal@180: from django.conf.urls import url bgneal@44: from django.views.generic import ListView bgneal@44: bgneal@44: from gigs.models import Gig bgneal@180: import gigs.views bgneal@44: bgneal@44: bgneal@180: urlpatterns = [ bgneal@180: url(r'^$', gigs.views.gigs, name='gigs-index'), bgneal@44: url(r'^flyers/$', bgneal@44: ListView.as_view( bgneal@44: queryset=Gig.objects.exclude(flyer__isnull=True).select_related('flyer'), bgneal@44: template_name='gigs/flyers.html', bgneal@111: paginate_by=10, bgneal@44: context_object_name='gig_list'), bgneal@44: name='gigs-flyers') bgneal@180: ]