Mercurial > public > sg101
diff gcalendar/admin.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | 4aadaf3bc234 |
children |
line wrap: on
line diff
--- a/gcalendar/admin.py Mon Dec 14 20:42:20 2015 -0600 +++ b/gcalendar/admin.py Tue Dec 15 21:01:07 2015 -0600 @@ -3,7 +3,7 @@ """ from django.conf import settings -from django.conf.urls import patterns, url +from django.conf.urls import url from django.contrib import admin from django.contrib import messages from django.contrib.sites.models import Site @@ -37,7 +37,7 @@ def get_urls(self): urls = super(EventAdmin, self).get_urls() - my_urls = patterns('', + my_urls = [ url(r'^google_sync/$', self.admin_site.admin_view(self.google_sync), name="gcalendar-google_sync"), @@ -47,7 +47,7 @@ url(r'^auth_return/$', self.admin_site.admin_view(self.auth_return), name="gcalendar-auth_return"), - ) + ] return my_urls + urls def approve_events(self, request, qs):