diff options
author | luxagraf <sng@luxagraf.net> | 2015-12-02 13:03:21 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-12-02 13:03:21 -0500 |
commit | 741cea88d882d8ac185121141ef49815835ad8a7 (patch) | |
tree | e465898ca5ba46cc61a191f93f9f71a1fdd7a65d /app/photos/detail_urls.py | |
parent | 988f1149eedf8de5c6b083370c736a82b53b48ac (diff) |
updated url schemes to quiet some django 1.10 warnings
Diffstat (limited to 'app/photos/detail_urls.py')
-rw-r--r-- | app/photos/detail_urls.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/photos/detail_urls.py b/app/photos/detail_urls.py index 8bdbd79..0ab94f6 100644 --- a/app/photos/detail_urls.py +++ b/app/photos/detail_urls.py @@ -1,7 +1,10 @@ -from django.conf.urls import * +from django.conf.urls import url from django.views.generic.detail import DetailView from photos.models import Photo -urlpatterns = patterns('', - (r'^(?P<object_id>\d+)/$', DetailView.as_view(model=Photo, template_name='details/photo.html')), -) +urlpatterns = [ + url( + r'^(?P<object_id>\d+)/$', + DetailView.as_view(model=Photo, template_name='details/photo.html') + ), +] |