(request)
return HttpResponse({})
Get the available threat types to use.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
Get the available threat types to use.
Get the available threat types to use .
def get_available_threat_types(request):
    """
    Get the available threat types to use.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
    """

    if request.method == "POST" and request.is_ajax():
        return HttpResponse(
            json.dumps(IndicatorThreatTypes.values(sort=True),
                       default=json_handler),
            content_type='application/json'
        )
    return HttpResponse({})
def get_available_threat_types ( request ) : if request . method == "POST" and request . is_ajax ( ) : return HttpResponse ( json . dumps ( IndicatorThreatTypes . values ( sort = True ) , default = json_handler ) , content_type = 'application/json' ) return HttpResponse ( { } )