mozilla/kuma — pull request #218 by ubernostrum (2012-05-21 16:38:45+00:00)
Title: Page hierarchy 753580

This provides the new field in Document, plus a helper method for getting a list of parents (which can then generate breadcrumbs), and support in forms/views.

A couple of caveats:

1. This uses a ModelChoiceField to represent the choice of "parent" document. That's going to be a large select element in the actual form; we probably will want some sort of JS widget, possibly auto-completing, to sit on top of that and make it usable.
2. Creating a new revision doesn't use the document form, which means creating a new revision -- at the moment -- doesn't offer an opportunity to set the document's parent. I fiddled a bit with that and couldn't come up with a clean solution, so that'd be a good followup (whatever solution we go with will likely be really easy to implement).