Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pre-populate blog entry's slug in the admin

  • Loading branch information...
commit 425de866c5bb4b73c51929235b6c3fbd535daeea 1 parent cb9d5e9
@jphalip jphalip authored
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",)}
)
Please sign in to comment.
Something went wrong with that request. Please try again.