]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
Fix blog and re-enable admin
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 22 Mar 2009 21:14:01 +0000 (21:14 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 22 Mar 2009 21:14:01 +0000 (21:14 +0000)
sommitrealweird/blog/admin.py
sommitrealweird/urls.py

index 8b3dcf9cb2044c5e19643297b9715133b8fa20e2..5c9295163439d4aaa87b8eaa0e22843ad3ce1c6a 100644 (file)
@@ -2,12 +2,12 @@ from models import BlogEntry, BlogSection
 from django.contrib import admin
 
 class BlogEntryAdmin(admin.ModelAdmin):
 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):
 
 class BlogSectionAdmin(admin.ModelAdmin):
-    prepopulated_fields = { "slug": ("title")
+    prepopulated_fields = { "slug": ("title",) }
 
 
-#admin.site.register(BlogSection, BlogSectionAdmin)
+admin.site.register(BlogSection, BlogSectionAdmin)
 
 
index 8415b54f82cb15f224421e187a4d37e13e62a32e..38f78a1a173a99f65e125812002209badc4703e4 100644 (file)
@@ -9,7 +9,7 @@ feeds_dict = {
     'blog': LatestBlogEntries,
     }
 
     'blog': LatestBlogEntries,
     }
 
-#admin.autodiscover()
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Example:
 
 urlpatterns = patterns('',
     # Example: