Cleaning up django-ajax snippets