pytask/taskapp/views/user.py
changeset 22 943a35c14cf7
parent 21 3e676fa948c4
equal deleted inserted replaced
21:3e676fa948c4 22:943a35c14cf7
   126             return redirect('/user/view/uid='+str(profile.user_id))
   126             return redirect('/user/view/uid='+str(profile.user_id))
   127     else:
   127     else:
   128         profile = Profile.objects.get(user = request.user)
   128         profile = Profile.objects.get(user = request.user)
   129         edit_profile_form = UserProfileEditForm(instance = profile)
   129         edit_profile_form = UserProfileEditForm(instance = profile)
   130         return render_to_response('user/edit_profile.html',{'edit_profile_form' : edit_profile_form})
   130         return render_to_response('user/edit_profile.html',{'edit_profile_form' : edit_profile_form})
       
   131 
       
   132 def browse_users(request):
       
   133     userlist = User.objects.order_by('username')
       
   134     return render_to_response('user/browse.html',{'userlist':userlist})