# HG changeset patch
# User anoop
# Date 1265025630 -19800
# Node ID 943a35c14cf71649df622ae04341c560b21fea9e
# Parent 3e676fa948c4ebdd45571a54447f18daa064c356
added browse users functionality, added user/browse.html, fixed view my profile template.
diff -r 3e676fa948c4 -r 943a35c14cf7 pytask/taskapp/views/user.py
--- a/pytask/taskapp/views/user.py Mon Feb 01 16:52:34 2010 +0530
+++ b/pytask/taskapp/views/user.py Mon Feb 01 17:30:30 2010 +0530
@@ -128,3 +128,7 @@
profile = Profile.objects.get(user = request.user)
edit_profile_form = UserProfileEditForm(instance = profile)
return render_to_response('user/edit_profile.html',{'edit_profile_form' : edit_profile_form})
+
+def browse_users(request):
+ userlist = User.objects.order_by('username')
+ return render_to_response('user/browse.html',{'userlist':userlist})
diff -r 3e676fa948c4 -r 943a35c14cf7 pytask/templates/user/browse.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/user/browse.html Mon Feb 01 17:30:30 2010 +0530
@@ -0,0 +1,7 @@
+{% extends 'base.html' %}
+{% block content %}
+ List of all the users:
+ {% for user in userlist %}
+ {{ user.username }}
+ {% endfor %}
+{% endblock %}
diff -r 3e676fa948c4 -r 943a35c14cf7 pytask/templates/user/edit_profile.html
--- a/pytask/templates/user/edit_profile.html Mon Feb 01 16:52:34 2010 +0530
+++ b/pytask/templates/user/edit_profile.html Mon Feb 01 17:30:30 2010 +0530
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block content %}
-