mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 16:18:00 -05:00
removed categories
This commit is contained in:
@@ -10,24 +10,13 @@ class RecipeTable(tables.Table):
|
||||
id = tables.LinkColumn('edit_recipe', args=[A('id')])
|
||||
name = tables.TemplateColumn(
|
||||
"<a href='#' onClick='openRecipe({{record.id}})'>{{record.name}}</a>")
|
||||
category = tables.Column(
|
||||
attrs={'td': {'class': 'd-none d-lg-table-cell'}, 'th': {'class': 'd-none d-lg-table-cell'}})
|
||||
all_tags = tables.Column(
|
||||
attrs={'td': {'class': 'd-none d-lg-table-cell'}, 'th': {'class': 'd-none d-lg-table-cell'}})
|
||||
|
||||
class Meta:
|
||||
model = Recipe
|
||||
template_name = 'generic/table_template.html'
|
||||
fields = ('id', 'name', 'category', 'all_tags')
|
||||
|
||||
|
||||
class CategoryTable(tables.Table):
|
||||
id = tables.LinkColumn('edit_category', args=[A('id')])
|
||||
|
||||
class Meta:
|
||||
model = Category
|
||||
template_name = 'generic/table_template.html'
|
||||
fields = ('id', 'icon', 'name')
|
||||
fields = ('id', 'name', 'all_tags')
|
||||
|
||||
|
||||
class KeywordTable(tables.Table):
|
||||
|
||||
Reference in New Issue
Block a user