Fix various errors in view.py
Fix various errors in view.py

jayoshih/content-curation,DXCanas/content-curation,jayoshih/content-curation,fle-internal/content-curation,DXCanas/content-curation,fle-internal/content-curation,fle-internal/content-curation,jayoshih/content-curation,fle-internal/content-curation,DXCanas/content-curation,DXCanas/content-curation,jayoshih/content-curation