git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished implementing blogs with the exception of tag support.
[philo.git]
/
contrib
/
penfield
/
admin.py
diff --git
a/contrib/penfield/admin.py
b/contrib/penfield/admin.py
index
5fc9dcc
..
c34199b
100644
(file)
--- a/
contrib/penfield/admin.py
+++ b/
contrib/penfield/admin.py
@@
-1,6
+1,11
@@
-from models import Entry, Blog
+from models import
Blog
Entry, Blog
from django.contrib import admin
from philo.admin import EntityAdmin
from django.contrib import admin
from philo.admin import EntityAdmin
-admin.site.register(Entry, EntityAdmin)
+class TitledContentAdmin(EntityAdmin):
+ prepopulated_fields = {'slug': ('title',)}
+ list_display = ('title', 'slug')
+
+
+admin.site.register(BlogEntry, TitledContentAdmin)
admin.site.register(Blog)
\ No newline at end of file
admin.site.register(Blog)
\ No newline at end of file