a suggested code change for future maintainability:

`
container_views = ['container_preview', 'container_child_preview']
unit_views = ['student_view']
...
elif view_name in (unit_views + container_views):
   is_container_view = (view_name in container_views)
`