diff options
Diffstat (limited to 'app/income/admin.py')
-rw-r--r-- | app/income/admin.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/income/admin.py b/app/income/admin.py index df93011..2483e1f 100644 --- a/app/income/admin.py +++ b/app/income/admin.py @@ -35,11 +35,13 @@ class GigAdmin(OSMGeoAdmin): def get_urls(self): urls = super(GigAdmin, self).get_urls() - custom_urls = patterns('', - url(r'^monthly/$', - self.admin_site.admin_view(self.get_monthly), - name='monthly_admin') - ) + custom_urls = [ + url( + r'^monthly/$', + self.admin_site.admin_view(self.get_monthly), + name='monthly_admin' + ) + ] return custom_urls + urls def get_monthly(self, request): |