Hi All If one uses mysite/article/slug as a url, then duplicate slugs would be a problem. Ok, for most sites mysite/article/month/day/slug fixes the problem, but only up to a point.
would you go down the /mysite/article/234/slug route? Any suggestions? Cheers On 26/01/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/26/06, Tim TerlegÄrd <[EMAIL PROTECTED]> wrote: > > Why is a field with prepopulate_from populated using javascript? > > It's ok that javascript is used for some tasks, but why is it used for > > populating a field before it's saved? Can't it be done in the save() > > method instead? > > That's because prepopulate_from is intended to give *recommended* > values, not definitive values. If your slug prepopulates from your > headline, you still may want to edit the slug after it's been > prepopulated. > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com | chicagocrime.org > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---