1 from models import BlogEntry, BlogSection
2 from django.contrib import admin
4 class BlogEntryAdmin(admin.ModelAdmin):
5 prepulated_fields = { "slug": ("title",) }
7 admin.site.register(BlogEntry, BlogEntryAdmin)
9 class BlogSectionAdmin(admin.ModelAdmin):
10 prepopulated_fields = { "slug": ("title",) }
12 admin.site.register(BlogSection, BlogSectionAdmin)