Fixed wrong user variable in lookup.html template for edit link (was user should be found_user).
authorPawel Solyga <Pawel.Solyga@gmail.com>
Fri, 12 Sep 2008 10:56:21 +0000
changeset 134 1f64d7a4d82d
parent 133 84ae145bcef3
child 135 a7ccde9d9eed
Fixed wrong user variable in lookup.html template for edit link (was user should be found_user). There is no DeveloperForm in site/user/profile.py changed that to LookupForm.
app/soc/templates/soc/site/user/profile/lookup.html
app/soc/views/site/user/profile.py
--- a/app/soc/templates/soc/site/user/profile/lookup.html	Fri Sep 12 02:46:21 2008 +0000
+++ b/app/soc/templates/soc/site/user/profile/lookup.html	Fri Sep 12 10:56:21 2008 +0000
@@ -62,7 +62,7 @@
   </tr>
   <tr>
    <td colspan="4">
-    <a href="{{ edit_link }}">Edit the User profile of {{ user.nick_name }}.</a>
+    <a href="{{ edit_link }}">Edit the User profile of {{ found_user.nick_name }}.</a>
    </td>
   </tr>
 {% endif %}
--- a/app/soc/views/site/user/profile.py	Fri Sep 12 02:46:21 2008 +0000
+++ b/app/soc/views/site/user/profile.py	Fri Sep 12 10:56:21 2008 +0000
@@ -158,7 +158,7 @@
     # else: URL is not one that was expected, so do not display edit link
   elif not form:
     # no pre-populated form was constructed, so show the empty look-up form
-    form = DeveloperForm()
+    form = LookupForm()
 
   context.update({'form': form,
                   'edit_link': edit_link,