diff email_list/admin.py @ 180:312f198e8958

Changes for Django 1.8.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:04:43 -0600
parents e2868ad47a1e
children
line wrap: on
line diff
--- a/email_list/admin.py	Tue Oct 20 20:38:34 2015 -0500
+++ b/email_list/admin.py	Sun Dec 13 21:04:43 2015 -0600
@@ -3,7 +3,7 @@
 
 """
 from django.contrib import admin
-from django.conf.urls import patterns, url
+from django.conf.urls import url
 from django.shortcuts import render, redirect
 
 from email_list.models import Subscriber
@@ -17,11 +17,11 @@
 
     def get_urls(self):
         urls = super(SubscriberAdmin, self).get_urls()
-        my_urls = patterns('',
+        my_urls = [
             url(r'^send_mail/$',
                 self.admin_site.admin_view(self.send_mail),
                 name='email_list-admin_mail'),
-        )
+        ]
         return my_urls + urls
 
     def send_mail(self, request):