mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
recipe view id links directly to edit view
This commit is contained in:
@@ -7,7 +7,7 @@ from .models import *
|
||||
|
||||
|
||||
class RecipeTable(tables.Table):
|
||||
id = tables.LinkColumn('view_recipe', args=[A('id')])
|
||||
id = tables.LinkColumn('edit_recipe', args=[A('id')])
|
||||
name = tables.TemplateColumn(
|
||||
"<a href='#' onClick='openRecipe({{record.id}})'>{{record.name}}</a>")
|
||||
all_tags = tables.Column(
|
||||
|
||||
Reference in New Issue
Block a user