Add page titles

This commit is contained in:
Claude Paroz 2018-10-28 12:03:29 +01:00
parent 28c3908099
commit 71c5de49d3
3 changed files with 5 additions and 0 deletions

View file

@ -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):

View file

@ -1,6 +1,8 @@
{% extends 'base.html' %}
{% load thumbnail %}
{% block title %}Recherche{% endblock %}
{% block extrahead %}
<style>
ul.results { list-style-type: none; padding: 0; }

View file

@ -1,5 +1,7 @@
{% extends 'base.html' %}
{% block title %}{{ recette.nom }}{% endblock %}
{% block content %}
<h1>{{ recette.nom }}</h1>