X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/98e12313596c58738fc7e3eeaccfde202b91ef2a..fa684e7b11bba7f7fce1c0e7832b34d0b8593db4:/apps/suggest/urls.py diff --git a/apps/suggest/urls.py b/apps/suggest/urls.py index 44d606e6b..ae4ac1573 100644 --- a/apps/suggest/urls.py +++ b/apps/suggest/urls.py @@ -3,12 +3,10 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf.urls.defaults import * -from django.views.generic.simple import direct_to_template -from suggest.forms import SuggestForm +from suggest import views urlpatterns = patterns('', - url(r'^$', 'django.views.generic.simple.direct_to_template', - {'template': 'suggest.html', 'extra_context': {'form': SuggestForm }}, name='suggest'), - url(r'^wyslij/$', 'suggest.views.report', name='report'), + url(r'^$', views.SuggestionFormView(), name='suggest'), + url(r'^plan/$', views.PublishingSuggestionFormView(), name='suggest_publishing'), )