diff --git a/cookbook/tables.py b/cookbook/tables.py index fc5ecaf2..0e66117b 100644 --- a/cookbook/tables.py +++ b/cookbook/tables.py @@ -6,7 +6,12 @@ from .models import * class RecipeTable(tables.Table): id = tables.LinkColumn('edit_recipe', args=[A('id')]) - name = tables.TemplateColumn("{{record.name}}") + name = tables.TemplateColumn( + "{{record.name}}") + 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 diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index d7b17b28..073fcaa3 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -17,6 +17,9 @@ integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"> +