From a0d6dbb5f404dbf860ac26041ea1bc09a7a47a46 Mon Sep 17 00:00:00 2001 From: Vladimir Knobel Date: Sat, 9 Feb 2019 19:35:28 +0100 Subject: [PATCH] Update primer.rst (#5068) path to overriding template doesn't match model name --- CONTRIBUTORS.rst | 1 + docs/reference/contrib/modeladmin/primer.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 3ed3621f5..7856022ca 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -344,6 +344,7 @@ Contributors * Asanka Lihiniyagoda * David Beitey * Paul Vetch +* Vladimir Knobel Translators =========== diff --git a/docs/reference/contrib/modeladmin/primer.rst b/docs/reference/contrib/modeladmin/primer.rst index 79c359ac2..4f1d624ff 100644 --- a/docs/reference/contrib/modeladmin/primer.rst +++ b/docs/reference/contrib/modeladmin/primer.rst @@ -151,7 +151,7 @@ within your project, before resorting to the defaults: So, to override the template used by ``IndexView`` for example, you'd create a new ``index.html`` template and put it in one of those locations. For example, if you wanted to do this for an ``ArticlePage`` model in a ``news`` app, you'd -add your custom template as ``modeladmin/news/article/index.html``. +add your custom template as ``modeladmin/news/articlepage/index.html``. For reference, ``modeladmin`` looks for templates with the following names for each view: