I see.  Well, I guess I don't know why it worked before either.  I
made the following change and that seems to have cleared up the
problem:

This:

if not form.slug:
  form.slug = slugify(form.title)
if form.is_valid():
  article = form.save(commit=False)

is now:

if form.is_valid():
  article = form.save(commit=False)
  if not form.cleaned_data['slug']:
    article.slug = slugify(form.cleaned_data['title'])
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to