diff contact/urls.py @ 1070:6ac56115e0a8

Convert contact form & views to V3.
author Brian Neal <bgneal@gmail.com>
date Sat, 09 Apr 2016 17:15:32 -0500
parents 5ba2508939f7
children
line wrap: on
line diff
--- a/contact/urls.py	Tue Apr 05 20:40:09 2016 -0500
+++ b/contact/urls.py	Sat Apr 09 17:15:32 2016 -0500
@@ -1,12 +1,11 @@
 """urls for the contact application"""
 from django.conf.urls import url
-from django.views.generic import TemplateView
 
 import contact.views
 
 urlpatterns = [
    url(r'^$', contact.views.contact_form, name='contact-form'),
    url(r'^thanks/$',
-       TemplateView.as_view(template_name='contact/contact_thanks.html'),
+       contact.views.ContactThanksView.as_view(),
        name='contact-thanks'),
 ]