@login_required
@view
def edit_photo(request, form=None, non_validation_error=False):
 if (form is None):
  form = mysite.account.forms.EditPhotoForm()
 data = mysite.profile.views.get_personal_data(request.user.get_profile())
 data['edit_photo_form'] = form
 if non_validation_error:
  data['non_validation_error'] = True
 return (request, 'account/edit_photo.html', data)

@ login_required @ view def edit_photo ( request , form = None , non_validation_error = False ) : if ( form is None ) : form = mysite . account . forms . EditPhotoForm ( ) data = mysite . profile . views . get_personal_data ( request . user . get_profile ( ) ) data [ 'edit_photo_form' ] = form if non_validation_error : data [ 'non_validation_error' ] = True return ( request , 'account/edit_photo.html' , data )
set or change your profile photo .