mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-17 05:21:00 +00:00
Remove redundant filter() in tutorial example. Fixes #3280
Thanks to @gogobook for the report!
This commit is contained in:
parent
4f1d3509ff
commit
cbb31c80e1
1 changed files with 1 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ will get you a 404, since we haven't yet defined a "tags" view. Add to ``models.
|
|||
|
||||
# Filter by tag
|
||||
tag = request.GET.get('tag')
|
||||
blogpages = BlogPage.objects.filter().filter(tags__name=tag)
|
||||
blogpages = BlogPage.objects.filter(tags__name=tag)
|
||||
|
||||
# Update template context
|
||||
context = super(BlogTagIndexPage, self).get_context(request)
|
||||
|
|
|
|||
Loading…
Reference in a new issue