Modified news/helpers.py