From c9c77db037a1fbb61629825276825d80aab64edd Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 22 Mar 2009 21:14:01 +0000 Subject: [PATCH 1/1] Fix blog and re-enable admin --- sommitrealweird/blog/admin.py | 8 ++++---- sommitrealweird/urls.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sommitrealweird/blog/admin.py b/sommitrealweird/blog/admin.py index 8b3dcf9..5c92951 100644 --- a/sommitrealweird/blog/admin.py +++ b/sommitrealweird/blog/admin.py @@ -2,12 +2,12 @@ from models import BlogEntry, BlogSection from django.contrib import admin class BlogEntryAdmin(admin.ModelAdmin): - prepulated_fields = { "slug": ("title") } + prepulated_fields = { "slug": ("title",) } -#admin.site.register(BlogEntry, BlogEntryAdmin) +admin.site.register(BlogEntry, BlogEntryAdmin) class BlogSectionAdmin(admin.ModelAdmin): - prepopulated_fields = { "slug": ("title") + prepopulated_fields = { "slug": ("title",) } -#admin.site.register(BlogSection, BlogSectionAdmin) +admin.site.register(BlogSection, BlogSectionAdmin) diff --git a/sommitrealweird/urls.py b/sommitrealweird/urls.py index 8415b54..38f78a1 100644 --- a/sommitrealweird/urls.py +++ b/sommitrealweird/urls.py @@ -9,7 +9,7 @@ feeds_dict = { 'blog': LatestBlogEntries, } -#admin.autodiscover() +admin.autodiscover() urlpatterns = patterns('', # Example: -- 2.39.5