delete views

This commit is contained in:
vabene1111
2018-03-30 22:52:43 +02:00
parent 37639ad4c7
commit a155c0c522
3 changed files with 26 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import django_tables2 as tables
from django_tables2.utils import A # alias for Accessor
from django.utils.translation import gettext as _
from .models import *
@@ -38,7 +39,7 @@ class KeywordTable(tables.Table):
class MonitoredPathTable(tables.Table):
edit = tables.TemplateColumn("<a href='#' >Löschen</a>")
edit = tables.TemplateColumn("<a href='{% url 'delete_monitor' record.id %}' >" + _('Delete') + "</a>")
class Meta:
model = Keyword