Frojd/wagtail-trash

Handling duplicate slugs in the trashcan

rinti opened this issue · 1 comments

rinti commented

If we add a page with the slug "asdf" to the trashcan, and then add another page with the same slug in the trash can we get:
{'slug': ["The slug 'asdf' is already in use within the parent page at '/trashcan/'"]}

A solution would be generating unique slugs when adding to trashcan that can safely be removed when moving away from trascan, like trashcan-:pageid:-:original-slug:

rinti commented

Oh wait, is this the same as #15?