From 144b8b62a6fea41e2b0a254d393986f1d61a3380 Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Fri, 25 Jun 2010 14:10:19 -0400 Subject: [PATCH] Switching to new Node/View system. --- contrib/penfield/admin.py | 6 +++--- contrib/penfield/models.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index 0e15287..efe13e4 100644 --- a/contrib/penfield/admin.py +++ b/contrib/penfield/admin.py @@ -1,4 +1,4 @@ -from models import BlogEntry, Blog, BlogNode +from models import BlogEntry, Blog, BlogView from django.contrib import admin from philo.admin import EntityAdmin @@ -16,10 +16,10 @@ class BlogEntryAdmin(TitledAdmin): pass -class BlogNodeAdmin(EntityAdmin): +class BlogViewAdmin(EntityAdmin): pass admin.site.register(Blog, BlogAdmin) admin.site.register(BlogEntry, BlogEntryAdmin) -admin.site.register(BlogNode, BlogNodeAdmin) \ No newline at end of file +admin.site.register(BlogView, BlogViewAdmin) \ No newline at end of file diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index 49070b8..f014a1d 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -1,5 +1,5 @@ from django.db import models -from philo.models import Entity, MultiNode, Template, register_value_model +from philo.models import Entity, MultiView, Template, register_value_model from django.contrib.auth.models import User from django.conf.urls.defaults import url, patterns from django.http import Http404, HttpResponse @@ -46,7 +46,7 @@ class BlogEntry(Entity, Titled): register_value_model(BlogEntry) -class BlogNode(MultiNode): +class BlogView(MultiView): PERMALINK_STYLE_CHOICES = ( ('D', 'Year, month, and day'), ('M', 'Year and month'), -- 2.20.1