def set_has_profile_image(username, is_uploaded, upload_dt=None):
 if (is_uploaded and (upload_dt is None)):
  raise ValueError('No upload datetime was supplied.')
 elif (not is_uploaded):
  upload_dt = None
 try:
  profile = UserProfile.objects.get(user__username=username)
 except ObjectDoesNotExist:
  raise UserNotFound()
 profile.profile_image_uploaded_at = upload_dt
 profile.save()

def set_has_profile_image ( username , is_uploaded , upload_dt = None ) : if ( is_uploaded and ( upload_dt is None ) ) : raise ValueError ( 'No upload datetime was supplied.' ) elif ( not is_uploaded ) : upload_dt = None try : profile = UserProfile . objects . get ( user__username = username ) except ObjectDoesNotExist : raise UserNotFound ( ) profile . profile_image_uploaded_at = upload_dt profile . save ( )
system api call used to store whether the user has uploaded a profile image .