# HG changeset patch # User anoop # Date 1266934332 -19800 # Node ID 3eac96608091d341ca05e566c22e6bf3649e8bdf # Parent f6a3bf088a9e2cc9f64ad48d50bd6eccbb0f9a5e enabled photo uploading for user profile. diff -r f6a3bf088a9e -r 3eac96608091 taskapp/views/user.py --- a/taskapp/views/user.py Tue Feb 23 17:55:04 2010 +0530 +++ b/taskapp/views/user.py Tue Feb 23 19:42:12 2010 +0530 @@ -74,7 +74,7 @@ if request.user.is_authenticated() == True: profile = Profile.objects.get(user = request.user) data = request.POST#form.cleaned_data - properties = {'aboutme':data['aboutme'], 'foss_comm':data['foss_comm'], 'phonenum':data['phonenum'], 'homepage':data['homepage'], 'street':data['street'], 'city':data['city'], 'country':data['country'], 'nick':data['nick']} + properties = {'aboutme':data['aboutme'], 'foss_comm':data['foss_comm'], 'phonenum':data['phonenum'], 'homepage':data['homepage'], 'street':data['street'], 'city':data['city'], 'country':data['country'], 'nick':data['nick'],'photo':request.FILES['photo']} #fields = ['dob','gender','credits','aboutme','foss_comm','phonenum','homepage','street','city','country','nick'] updateProfile(profile,properties) return redirect('/user/view/uid='+str(profile.user_id)) diff -r f6a3bf088a9e -r 3eac96608091 templates/user/edit_profile.html --- a/templates/user/edit_profile.html Tue Feb 23 17:55:04 2010 +0530 +++ b/templates/user/edit_profile.html Tue Feb 23 19:42:12 2010 +0530 @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block content %} -