Update primer.rst (#5068)

path to overriding template doesn't match model name
This commit is contained in:
Vladimir Knobel 2019-02-09 19:35:28 +01:00 committed by Matt Westcott
parent 4a5036839b
commit a0d6dbb5f4
2 changed files with 2 additions and 1 deletions

View file

@ -344,6 +344,7 @@ Contributors
* Asanka Lihiniyagoda
* David Beitey
* Paul Vetch
* Vladimir Knobel
Translators
===========

View file

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