git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initial navigation commit. Steps towards Model-managed navigation overrides.
[philo.git]
/
models
/
pages.py
diff --git
a/models/pages.py
b/models/pages.py
index
81b84c9
..
3669338
100644
(file)
--- a/
models/pages.py
+++ b/
models/pages.py
@@
-102,6
+102,12
@@
class Page(View):
if errors:
raise ValidationError(errors)
+ def get_navigation(self, node, depth, current_depth):
+ return {
+ 'url': node.get_absolute_url(),
+ 'title': self.title
+ }
+
class Meta:
app_label = 'philo'