mozilla/kuma — pull request #695 by darkwing (2012-11-09 01:12:25+00:00)
Title: DO NOT MERGE - Slug translate 809617

DO NOT MERGE

So I've fixed the "specific" slug issue within this PR but I'm certain there's another problem. Here's the flow of it:

1. Create an English document with slug "/english_parent"
2. Translate to Spanish locale "/spanish_parent"
3. Create an English document with slug "/english_parent/english_child"
4. From "english_parent/english_child", go to "Add Translation" -> "Spanish (es)"
5. Change the slug to "spanish_child"
6. Submit the form
7. The slug ends up as "/english_parent/spanish_child", which is technically correct, I guess, but ideally we want "/spanish_parent/spanish_child"

I would think that this line (https://github.com/darkwing/kuma/blob/3a1292da96dde8fbe43d37137a29aeea9cea51f1/apps/wiki/views.py#L1352) is supposed to find "/spanish_parent", but it doesn't.

I'm submitting this PR as progress and want to make sure someone else looks at it and tells I'm not crazy. Thoughts @groovecoder?