django-mptt/django-mptt — pull request #154 by mikery (2011-11-04 15:33:42+00:00)
Title: Modified get_siblings to make including root siblings optional

This is a very small patch (with tests) that modifies get_siblings to make the inclusion of root nodes optional. If root_siblings is False, root siblings are not returned. The default behaviour is to include root siblings.

My app uses multiple trees so I needed to be able to exclude root siblings. This seemed the cleanest way to implement it without doing an additional "is this the root node, then exclude siblings" check in my own app.

Although a small change, I would appreciate it if this could be merged so I can continue using the official version of django-mptt.

Thanks,

Mike