Browse files

Pre-populate blog entry's slug in the admin

  • Loading branch information...
1 parent cb9d5e9 commit 425de866c5bb4b73c51929235b6c3fbd535daeea @jphalip jphalip committed May 10, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 django_website/blog/admin.py
View
1 django_website/blog/admin.py
@@ -8,4 +8,5 @@
list_display = ('headline', 'pub_date', 'is_active', 'is_published', 'author'),
list_filter = ('is_active',),
exclude = ('summary_html', 'body_html'),
+ prepopulated_fields = {"slug": ("headline",)}
)

0 comments on commit 425de86

Please sign in to comment.