kopia lustrzana https://github.com/wagtail/wagtail
Remove redundant filter() in tutorial example. Fixes #3280
Thanks to @gogobook for the report!pull/3232/head
rodzic
4f1d3509ff
commit
cbb31c80e1
|
@ -644,7 +644,7 @@ will get you a 404, since we haven't yet defined a "tags" view. Add to ``models.
|
||||||
|
|
||||||
# Filter by tag
|
# Filter by tag
|
||||||
tag = request.GET.get('tag')
|
tag = request.GET.get('tag')
|
||||||
blogpages = BlogPage.objects.filter().filter(tags__name=tag)
|
blogpages = BlogPage.objects.filter(tags__name=tag)
|
||||||
|
|
||||||
# Update template context
|
# Update template context
|
||||||
context = super(BlogTagIndexPage, self).get_context(request)
|
context = super(BlogTagIndexPage, self).get_context(request)
|
||||||
|
|
Ładowanie…
Reference in New Issue