X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/2d5a803e2b8bd6ed72de946d4cfbb7b880493bf6..4c8cb8b77590e3bbccb1fdf8dc05094b683a5a14:/sommitrealweird/blog/admin.py?ds=sidebyside diff --git a/sommitrealweird/blog/admin.py b/sommitrealweird/blog/admin.py index 8b3dcf9..daeaa50 100644 --- a/sommitrealweird/blog/admin.py +++ b/sommitrealweird/blog/admin.py @@ -1,13 +1,13 @@ -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)