recipe view id links directly to edit view
This commit is contained in:
parent
22b6c3baa2
commit
bd30606cff
@ -7,7 +7,7 @@ from .models import *
|
|||||||
|
|
||||||
|
|
||||||
class RecipeTable(tables.Table):
|
class RecipeTable(tables.Table):
|
||||||
id = tables.LinkColumn('view_recipe', args=[A('id')])
|
id = tables.LinkColumn('edit_recipe', args=[A('id')])
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
"<a href='#' onClick='openRecipe({{record.id}})'>{{record.name}}</a>")
|
"<a href='#' onClick='openRecipe({{record.id}})'>{{record.name}}</a>")
|
||||||
all_tags = tables.Column(
|
all_tags = tables.Column(
|
||||||
|
Loading…
Reference in New Issue
Block a user