revorked import

This commit is contained in:
vabene1111
2018-05-06 21:47:40 +02:00
parent 4be125353f
commit 8d4506da54
6 changed files with 46 additions and 32 deletions

View File

@ -60,8 +60,9 @@ class MonitoredPathTable(tables.Table):
fields = ('id', 'path', 'last_checked')
class NewRecipeTable(tables.Table):
delete = tables.TemplateColumn("<a href='{% url 'delete_new_recipe' record.id %}' >" + _('Delete') + "</a>")
class ImportTable(tables.Table):
id = tables.LinkColumn('edit_import', args=[A('id')])
delete = tables.TemplateColumn("<a href='{% url 'delete_import' record.id %}' >" + _('Delete') + "</a>")
class Meta:
model = NewRecipe