mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-04 23:30:29 +00:00
Update primer.rst (#5068)
path to overriding template doesn't match model name
This commit is contained in:
parent
4a5036839b
commit
a0d6dbb5f4
2 changed files with 2 additions and 1 deletions
|
|
@ -344,6 +344,7 @@ Contributors
|
|||
* Asanka Lihiniyagoda
|
||||
* David Beitey
|
||||
* Paul Vetch
|
||||
* Vladimir Knobel
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue