This is shorter and simpler:
```python
elif view_name in ('student_view', 'container_preview'):
```