Skip to content

Commit 90a193b

Browse files
committed
Fix code solution for blog_tags library
1 parent 848f443 commit 90a193b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from django import template
22

3-
from ..models import Post
3+
from ..models import Entry
44

55
register = template.Library()
66

7-
@register.inclusion_tag('blog/templatetags/entry_history.html')
7+
8+
@register.inclusion_tag('blog/_entry_history.html')
89
def entry_history():
9-
posts = Post.objects.all()[:10]
10-
return {'posts': posts}
10+
entries = Entry.objects.all()[:5]
11+
return {'entries': entries}

0 commit comments

Comments
 (0)