Skip to content

Instantly share code, notes, and snippets.

@jaredlewis
Created April 1, 2013 18:36
Show Gist options
  • Save jaredlewis/5286754 to your computer and use it in GitHub Desktop.
Save jaredlewis/5286754 to your computer and use it in GitHub Desktop.
# Add the request user to the class, this allows certain django decorators to work
if hasattr(request, 'user'):
self.user = request.user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment