Fix bug that caused Lookup user by User Account not to work properly. Basically wrong parameter to models.user.logic.getFromFields().
authorPawel Solyga <Pawel.Solyga@gmail.com>
Tue, 14 Oct 2008 22:57:52 +0000
changeset 332 3a04703a7fe3
parent 331 24edc648ad3f
child 333 d3e85f6144cc
Fix bug that caused Lookup user by User Account not to work properly. Basically wrong parameter to models.user.logic.getFromFields(). Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/views/site/user/profile.py
--- a/app/soc/views/site/user/profile.py	Tue Oct 14 22:35:46 2008 +0000
+++ b/app/soc/views/site/user/profile.py	Tue Oct 14 22:57:52 2008 +0000
@@ -129,7 +129,7 @@
       
       if form_id:
         # email provided, so attempt to look up user by email
-        user = models.user.logic.getFromFields(id=form_id)
+        user = models.user.logic.getFromFields(email=form_id.email())
 
         if user:
           lookup_message = ugettext_lazy('User found by email.')