Fix import in views/base.py