-from models import BlogEntry, BlogSection
+from blog.models import BlogEntry, BlogSection
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):
- prepopulated_fields = { "slug": ("title")
+ prepopulated_fields = { "slug": ("title",) }
-#admin.site.register(BlogSection, BlogSectionAdmin)
+admin.site.register(BlogSection, BlogSectionAdmin)