andrewebdev/django-contentbrowser — comment on commit bc29bfb9210c0a6de436b839813269aece17e125
File: src/contentbrowser/views.py line 38
By d0ugal:

Just so you know, you should be able to use:

for cat in cbregistry:

The Registry class implements Sized and Iterable from the collections module. Meaning it behaves just like a list - you can iterate over it and use len() etc. Should save you a line of code :)