mousadialo / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

The currently logged in user variable gets clobbered by the public view #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Because the public view cause the user being viewed "user" in the context,
the reference to the currently logged in user is overwritten.

Attached is a patch to fix that.

Original issue reported on code.google.com by eric.moritz on 5 Apr 2008 at 5:09

Attachments:

GoogleCodeExporter commented 8 years ago
You're totally right, thanks for the submissions and the patch.

This was solved on the HEAD version of the SVN repository with another 
approach. I'm
using {{ request.user }} on the template to reference the authenticated user, 
and {{
user }} to reference the current_user public page.

Original comment by david.ru...@gmail.com on 6 Apr 2008 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by david.ru...@gmail.com on 14 Apr 2008 at 9:02

GoogleCodeExporter commented 8 years ago
Eric, my solution was not good enough, yours is better.

I have applied your patch to the current SVN version.

Thanks again.

Original comment by david.ru...@gmail.com on 19 Apr 2008 at 4:29