1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.conf.urls import patterns, url
6 from django.views.generic import DetailView, ListView, FormView
8 from .models import Offer
9 from .views import WLFundView
12 urlpatterns = patterns('',
13 url(r'^$', ListView.as_view(queryset=Offer.public()), name='funding'),
14 url(r'lektura/^(?P<slug>[^/]+)/$', DetailView.as_view(queryset=Offer.public()), name='funding_offer'),
15 url(r'fundusz/$', WLFundView.as_view(), name='funding_wlfund'),