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.defaults import *
6 from django.views.generic.simple import direct_to_template
7 from suggest.forms import SuggestForm, PublishingSuggestForm
8 from suggest.views import PublishingSuggestionFormView
10 urlpatterns = patterns('',
11 url(r'^$', 'django.views.generic.simple.direct_to_template',
12 {'template': 'suggest.html', 'extra_context': {'form': SuggestForm }}, name='suggest'),
13 url(r'^wyslij/$', 'suggest.views.report', name='report'),
15 #url(r'^plan/$', 'suggest.views.publishing', name='suggest_publishing'),
16 url(r'^plan/$', PublishingSuggestionFormView(), name='suggest_publishing'),
17 #url(r'^plan_block/$', 'django.views.generic.simple.direct_to_template',
18 # {'template': 'publishing_suggest.html',
19 # 'extra_context': {'pubsuggest_form': PublishingSuggestForm }},
20 # name='suggest_publishing'),
21 #url(r'^plan/wyslij/$', 'suggest.views.publishing_commit', name='suggest_publishing_commit'),