From: Brett Parker Date: Sun, 22 Mar 2009 21:14:01 +0000 (+0000) Subject: Fix blog and re-enable admin X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/c9c77db037a1fbb61629825276825d80aab64edd?ds=inline Fix blog and re-enable admin --- 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: