]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/blog/admin.py
Fix 404 rendering
[sommitrealweird.git] / sommitrealweird / blog / admin.py
index 8b3dcf9cb2044c5e19643297b9715133b8fa20e2..daeaa504b54ae57fb9812ccf464bf1b8877bff9d 100644 (file)
@@ -1,13 +1,13 @@
-from models import BlogEntry, BlogSection
+from blog.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") }
+    prepopulated_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)