tangentlabs/django-oscar — pull request #249 by elbaschid (2012-07-24 04:26:30+00:00)
Title: moved getting categories into queryset method for easier overwriting

I just finished some work on adding a visibility flag to the ``Category`` model and had to create a custom ``category_tree`` template tag to make the templates use the correct queryset of categories. I realised that it would be a little bit more DRY if I could just overwrite a method in ``CategoryTreeNode`` returning the queryset instead of copying the whole ``render`` method.

It would be great if this update could go into Oscar to make it a bit simpler and DRYer to overwrite the node.