shopping list basics

This commit is contained in:
vabene1111
2020-08-11 12:17:12 +02:00
parent 82497c734a
commit 8055754455
7 changed files with 95 additions and 53 deletions

View File

@@ -108,6 +108,15 @@ class RecipeImportTable(tables.Table):
fields = ('id', 'name', 'file_path')
class ShoppingListTable(tables.Table):
id = tables.LinkColumn('edit_storage', args=[A('id')])
class Meta:
model = ShoppingList
template_name = 'generic/table_template.html'
fields = ('id', 'created_by', 'created_at')
class ViewLogTable(tables.Table):
recipe = tables.LinkColumn('view_recipe', args=[A('recipe_id')])