We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848f443 commit 90a193bCopy full SHA for 90a193b
myblog/blog/templatetags/blog_tags.py
@@ -1,10 +1,11 @@
1
from django import template
2
3
-from ..models import Post
+from ..models import Entry
4
5
register = template.Library()
6
7
-@register.inclusion_tag('blog/templatetags/entry_history.html')
+
8
+@register.inclusion_tag('blog/_entry_history.html')
9
def entry_history():
- posts = Post.objects.all()[:10]
10
- return {'posts': posts}
+ entries = Entry.objects.all()[:5]
11
+ return {'entries': entries}
0 commit comments