X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..773a8c2da4c355af5d81d27a4849e9548e2d8864:/events/urls.py?ds=sidebyside diff --git a/events/urls.py b/events/urls.py index 5dbae6d..ebec896 100644 --- a/events/urls.py +++ b/events/urls.py @@ -3,11 +3,10 @@ # 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.utils.translation import string_concat, ugettext_lazy as _ -urlpatterns = patterns('', - url(r'^$', ListView.as_view(model=Event), name='events'), - #url(r'^(?P[^/]+)/$', DetailView.as_view(model=Event), name='news'), +urlpatterns = patterns('events.views', + url(r'^$', 'events', name='events'), + url(string_concat('^', _('past'), '/$'), 'events_past', name='events_past'), )