@waffle_flag('testing-autovouch-views')
@allow_unvouched
@never_cache
def unvouch(request, username):
 profile = get_object_or_404(UserProfile, user__username=username)
 profile.vouches_received.all().delete()
 messages.success(request, _('Successfully unvouched user.'))
 return redirect('phonebook:profile_view', profile.user.username)

@ waffle_flag ( 'testing-autovouch-views' ) @ allow_unvouched @ never_cache def unvouch ( request , username ) : profile = get_object_or_404 ( UserProfile , user__username = username ) profile . vouches_received . all ( ) . delete ( ) messages . success ( request , _ ( 'Successfully unvouched user.' ) ) return redirect ( 'phonebook:profile_view' , profile . user . username )
automatically remove all vouches from username .