Clean up user_profile getting.

(imported from commit 86be3c8061ac46510d240703c8e88eedb0883a8c)
This commit is contained in:
Tim Abbott 2012-09-07 13:31:01 -04:00
parent d8ade6de5b
commit c7be5cfadc
1 changed files with 1 additions and 3 deletions

View File

@ -129,9 +129,7 @@ def get_updates_longpoll(request, handler):
last_received = request.POST.get('last_received')
if not last_received:
return json_error("Missing last_received argument")
user = request.user
user_profile = UserProfile.objects.get(user=user)
user_profile = UserProfile.objects.get(user=request.user)
def on_receive(zephyrs):
if handler.request.connection.stream.closed():