From 71c5de49d3d6a48094f6307c444564e1bdc311d8 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 28 Oct 2018 12:03:29 +0100 Subject: [PATCH] Add page titles --- recette/admin.py | 1 + templates/index.html | 2 ++ templates/recette.html | 2 ++ 3 files changed, 5 insertions(+) diff --git a/recette/admin.py b/recette/admin.py index b918dd0..293b779 100644 --- a/recette/admin.py +++ b/recette/admin.py @@ -35,6 +35,7 @@ class RecetteForm(forms.ModelForm): class RecetteAdmin(admin.ModelAdmin): list_display = ['nom', 'has_photo', 'has_photo_instr'] form = RecetteForm + save_on_top = True inlines = [IngredientInline] def has_photo(self, obj): diff --git a/templates/index.html b/templates/index.html index 983c960..04d5b40 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,8 @@ {% extends 'base.html' %} {% load thumbnail %} +{% block title %}Recherche{% endblock %} + {% block extrahead %}