Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
Altered the way Pages represent themselves so that one can call {{ pa…
Browse files Browse the repository at this point in the history
…ges.subpages }} or {{ site.pages }} in the templates without breaking the templates.
  • Loading branch information
Rob McGuire-Dale authored and mythmon committed May 16, 2011
1 parent 9e2d13d commit 0c97ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wok/page.py
Expand Up @@ -188,5 +188,5 @@ def __getattr__(self, name):
if name in self.meta:
return self.meta[name]

def __str__(self):
return self.slug
def __repr__(self):
return "&ltwok.page.Page '%s'&gt"%self.slug

0 comments on commit 0c97ba2

Please sign in to comment.