Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix by_id docstring

  • Loading branch information...
commit 5bd10865b30bb34830883e6caa2239101c63613c 1 parent 7545d38
@tvon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 templatetags/page_helpers.py
View
4 templatetags/page_helpers.py
@@ -19,9 +19,9 @@ def page_by_slug(slug):
@register.as_tag
def page_by_id(id):
"""
- Return a page matching the provided slug, eg 'index' or 'about/team'
+ Return a page by id
"""
try:
return Page.objects.get(pk=id)
except Page.DoesNotExist:
- return None
+ return None
Please sign in to comment.
Something went wrong with that request. Please try again.