X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3d1fb545dd1f49e0624d3adf20e5568b1c33d8ec..0bd2c341a8b55f817c2e193a6c4658d52ef95961:/apps/suggest/urls.py diff --git a/apps/suggest/urls.py b/apps/suggest/urls.py index b769e491b..2f7017213 100644 --- a/apps/suggest/urls.py +++ b/apps/suggest/urls.py @@ -2,22 +2,11 @@ # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # 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, PublishingSuggestForm -from suggest.views import PublishingSuggestionFormView +from django.conf.urls import patterns, url +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'^plan/$', 'suggest.views.publishing', name='suggest_publishing'), - url(r'^plan/$', PublishingSuggestionFormView(), name='suggest_publishing'), - #url(r'^plan_block/$', 'django.views.generic.simple.direct_to_template', - # {'template': 'publishing_suggest.html', - # 'extra_context': {'pubsuggest_form': PublishingSuggestForm }}, - # name='suggest_publishing'), - #url(r'^plan/wyslij/$', 'suggest.views.publishing_commit', name='suggest_publishing_commit'), + url(r'^$', views.SuggestionFormView(), name='suggest'), + url(r'^plan/$', views.PublishingSuggestionFormView(), name='suggest_publishing'), )