VenusInterns / BlogTemplate

MIT License
208 stars 38 forks source link

Slug update not working correctly for draft with updated title #162

Closed julietdaniel closed 7 years ago

julietdaniel commented 7 years ago

Repro:

  1. Publish a post with the title "Title 1."
  2. Edit the post, change the title to "Title 2," and save it as a draft.
  3. Edit the post, don't change the title, and publish it.

Expected: Get a slugUpdateWarning and be able to choose whether to update the slug, which will be different from the slug for the originally published post.

Actual: Don't get a slugUpdateWarning. Slug automatically updates to "Title-2" based on the new title, which was updated when the draft was saved, not when published again.