mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
overview + center
This commit is contained in:
9
cookbook/tables.py
Normal file
9
cookbook/tables.py
Normal 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')
|
||||
Reference in New Issue
Block a user