updated django snippets