diff user_photos/urls.py @ 1158:364f8ec48612

Updated User Photos to V3 design.
author Brian Neal <bgneal@gmail.com>
date Mon, 23 Jan 2017 20:17:50 -0600
parents d9cd3180c12c
children
line wrap: on
line diff
--- a/user_photos/urls.py	Thu Jan 19 18:35:53 2017 -0600
+++ b/user_photos/urls.py	Mon Jan 23 20:17:50 2017 -0600
@@ -1,8 +1,6 @@
 """URLs for the user_photos application."""
 from django.conf.urls import url
-from django.views.generic import DetailView
 
-from user_photos.models import Photo
 import user_photos.views
 
 
@@ -15,7 +13,7 @@
         user_photos.views.upload_ajax_v3,
         name='user_photos-upload_ajax_v3'),
     url(r'^photo/(?P<pk>\d+)/$',
-        DetailView.as_view(model=Photo),
+        user_photos.views.PhotoView.as_view(),
         name='user_photos-detail'),
     url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$',
         user_photos.views.GalleryView.as_view(),