]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/blog/admin.py
88ebb87c49068864b51e0cab203db3830b40625e
[sommitrealweird.git] / sommitrealweird / blog / admin.py
1 from models import BlogEntry, BlogSection
2 from django.contrib import admin
3
4 class BlogEntryAdmin(admin.ModelAdmin):
5     prepopulated_fields = { "slug": ("title",) }
6
7 admin.site.register(BlogEntry, BlogEntryAdmin)
8
9 class BlogSectionAdmin(admin.ModelAdmin):
10     prepopulated_fields = { "slug": ("title",) }
11
12 admin.site.register(BlogSection, BlogSectionAdmin)
13