direct_to_template -> TemplateView

This commit is contained in:
Rebecca Lovewell 2014-01-13 16:40:27 -05:00
parent 84bd8f8971
commit b495eddc61

View file

@ -1,9 +1,9 @@
from django.conf.urls import patterns, url
from django.views.generic.simple import direct_to_template
from django.views.generic import TemplateView
urlpatterns = patterns("symposion.sponsorship.views",
url(r"^$", direct_to_template, {"template": "sponsorship/list.html"}, name="sponsor_list"),
url(r"^$", TemplateView.as_view(template_name="sponsorship/list.html"), name="sponsor_list"),
url(r"^apply/$", "sponsor_apply", name="sponsor_apply"),
url(r"^add/$", "sponsor_add", name="sponsor_add"),
url(r"^(?P<pk>\d+)/$", "sponsor_detail", name="sponsor_detail"),