Useful snippets for Django Class Based Views