Commit e54c5ae7 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

fix url

parent 48acdc13
Pipeline #1581 passed with stage
in 1 minute and 20 seconds
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.contrib import admin from django.contrib import admin
from django.conf.urls import url
from django.db.models import Count from django.db.models import Count
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
...@@ -95,11 +96,10 @@ class EmailTemplateAdmin(admin.ModelAdmin): ...@@ -95,11 +96,10 @@ class EmailTemplateAdmin(admin.ModelAdmin):
def get_urls(self): def get_urls(self):
urls = super(EmailTemplateAdmin, self).get_urls() urls = super(EmailTemplateAdmin, self).get_urls()
my_urls = [ my_urls = [
'', url(r'^add/$',
(r'^add/$', self.admin_site.admin_view(CreateTemplateView.as_view())),
self.admin_site.admin_view(CreateTemplateView.as_view())), url(r'^(?P<pk>\d+)/change/$',
(r'^(?P<pk>\d+)/change/$', self.admin_site.admin_view(UpdateTemplateView.as_view()))
self.admin_site.admin_view(UpdateTemplateView.as_view()))
] ]
return my_urls + urls return my_urls + urls
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment