Skip to content

Commit

Permalink
Changing middleware to use request.user instead of self.user
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Aug 10, 2012
1 parent df0b04c commit c00fde8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG
@@ -0,0 +1,9 @@
=========
CHANGELOG
=========

# 0.1.2 Improved multi-threading

# 0.1.1 Fixed multi-threading issue on request object

# 0.1.0 Initial release
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -2,7 +2,7 @@
django-profiletools
===================
:Info: Tools for Profile models in Django.
:Version: 0.1.1
:Version: 0.1.2
:Author: Daniel Greenfeld (http://pydanny.com)

About
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '0.1'
# The full version, including alpha/beta/rc tags.
release = '0.1.1'
release = '0.1.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion profiletools/__init__.py
@@ -1,6 +1,6 @@
__author__ = 'Daniel Greenfeld'

VERSION = (0, 1, 1)
VERSION = (0, 1, 2)


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion profiletools/middleware.py
Expand Up @@ -15,4 +15,4 @@ def process_request(self, request):
self.user = request.user
setattr(request.__class__,
my_profile_module_name,
SimpleLazyObject(lambda: get_profile(self.user)))
SimpleLazyObject(lambda: get_profile(request.user)))

0 comments on commit c00fde8

Please sign in to comment.