views:

268

answers:

1

From the admin panel I want to populate a slug field based on a certain text field

eg.

Title: My Awesome Page

would automaticaly populate

Slug: my_awesome_page

+4  A: 

There used to be a prepoulate_from option for the SlugField up to 0.96. It became an admin option after that. See here for reference on that.

Alternatively, you could override the model's save method to calculate the value of the slug field on save().

This question may be helpful, too.

rz