"chg" views.py refactored