overview + center

This commit is contained in:
vabene1111
2018-02-01 00:20:47 +01:00
parent c382e9df24
commit 9bdc303f0e
9 changed files with 267 additions and 70 deletions

9
cookbook/tables.py Normal file
View File

@@ -0,0 +1,9 @@
import django_tables2 as tables
from .models import *
class RecipeTable(tables.Table):
class Meta:
model = Recipe
template_name = 'tables/table_template.html'
fields = ('name', 'category', 'all_tags')