Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Pre-populate blog entry's slug in the admin

  • Loading branch information...
commit 425de866c5bb4b73c51929235b6c3fbd535daeea 1 parent cb9d5e9
Julien Phalip authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django_website/blog/admin.py
1  django_website/blog/admin.py
@@ -8,4 +8,5 @@
8 8
     list_display = ('headline', 'pub_date', 'is_active', 'is_published', 'author'),
9 9
     list_filter = ('is_active',),
10 10
     exclude = ('summary_html', 'body_html'),
  11
+    prepopulated_fields = {"slug": ("headline",)}
11 12
 )

0 notes on commit 425de86

Please sign in to comment.
Something went wrong with that request. Please try again.