Fix bug in collection key variable name in views.py.