@decorators.api_view(['POST'])
@decorators.permission_classes([TwitterAccountIgnorePermission])
def unignore(request):
 usernames = json.loads(request.body).get('usernames')
 if (not usernames):
  raise GenericAPIException(status.HTTP_400_BAD_REQUEST, 'Usernames not provided.')
 accounts = TwitterAccount.objects.filter(username__in=usernames)
 for account in accounts:
  if (account and account.ignored):
   account.ignored = False
   account.save()
 message = {'success': '{0} users unignored successfully.'.format(len(accounts))}
 return Response(message)

@ decorators . api_view ( [ 'POST' ] ) @ decorators . permission_classes ( [ TwitterAccountIgnorePermission ] ) def unignore ( request ) : usernames = json . loads ( request . body ) . get ( 'usernames' ) if ( not usernames ) : raise GenericAPIException ( status . HTTP_400_BAD_REQUEST , 'Usernames not provided.' ) accounts = TwitterAccount . objects . filter ( username__in = usernames ) for account in accounts : if ( account and account . ignored ) : account . ignored = False account . save ( ) message = { 'success' : '{0} users unignored successfully.' . format ( len ( accounts ) ) } return Response ( message )
unignores a twitter account from showing up in the aoa tool .