X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..b64d44fd01d504fbcbf3a180f9e620fed6d527ed:/events/urls.py?ds=sidebyside diff --git a/events/urls.py b/events/urls.py index 5dbae6d..175cba7 100644 --- a/events/urls.py +++ b/events/urls.py @@ -2,12 +2,12 @@ # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.conf.urls import patterns, include, url -from django.views.generic import ListView, DetailView -from events.models import Event +from django.conf.urls import include, url +from django.utils.translation import string_concat, ugettext_lazy as _ +from . import views -urlpatterns = patterns('', - url(r'^$', ListView.as_view(model=Event), name='events'), - #url(r'^(?P[^/]+)/$', DetailView.as_view(model=Event), name='news'), -) +urlpatterns = [ + url(r'^$', views.events, name='events'), + url(string_concat('^', _('past'), '/$'), views.events_past, name='events_past'), +]