Re: Slugify doesn't match pre-populated slug field.

2009-09-23 Thread Amos
On Wednesday 23 September 2009 17:06:44 Justin Myers wrote: > Two ideas: > 1. Instead of having the slug prepopulated, override save() [1] and > run slugify yourself. > 2. Instead of running slugify on the name, why not just access its > slugfield directly? > > HTH, > Justin > > [1] > http://doc

Re: Slugify doesn't match pre-populated slug field.

2009-09-23 Thread Justin Myers
Two ideas: 1. Instead of having the slug prepopulated, override save() [1] and run slugify yourself. 2. Instead of running slugify on the name, why not just access its slugfield directly? HTH, Justin [1] http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods

Slugify doesn't match pre-populated slug field.

2009-09-22 Thread Amos
I have an Admin form with a slugfield prepopulated from the name of the news item I'm creating. In one of my templates I have a link created using the slugify filter applied to the name of the news item. When I create an object with a name such as "A New Story" the prepoulated field contains "