Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore IfExp CompareEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return ListLoad NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Str orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str kwarg body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad keyword ListLoad Str Str Str keyword ListLoad Str decorator_list
N/A django forms rest_framework status rest_framework.decorators detail_route rest_framework.response Response taggit.forms TagField onadata.apps.logger.models XForm onadata.libs.models.signals xform_tags_add xform_tags_delete TagForm N/A N/A forms Form N/A N/A tags N/A TagField N/A _labels_post N/A N/A request instance N/A N/A N/A Add a label to an instance.

    :param request: The HTTP request to extract data from.
    :param instance: The instance to set tags on.
    :returns: A HTTP status code or None.
     N/A form N/A TagForm N/A request data N/A N/A N/A form is_valid N/A N/A tags N/A N/A N/A form cleaned_data get tags None N/A tags N/A N/A tag tags N/A N/A N/A N/A N/A instance tags add tag N/A N/A isinstance instance XForm N/A N/A N/A N/A xform_tags_add send sender XForm xform instance tags tags N/A N/A status HTTP_201_CREATED N/A _labels_delete N/A N/A label instance N/A N/A N/A Delete a label from an instance.

    :param instance: object to delete label from.
    :param label: the label to delete.

    :returns the status and all the tags.
     N/A count N/A N/A N/A instance tags count N/A N/A N/A N/A instance tags remove label N/A N/A isinstance instance XForm N/A N/A N/A N/A xform_tags_delete send sender XForm xform instance tag label N/A http_status N/A N/A count N/A N/A N/A instance tags count N/A status HTTP_202_ACCEPTED N/A status HTTP_200_OK N/A N/A http_status N/A list N/A N/A N/A instance tags names N/A process_label_request N/A N/A request label instance N/A N/A N/A Process request to labels endpoint.

    :param request: HTTP request object.
    :param label: label that is being acted on.
    :param instance: object that label is applied to.

    :returns: A response object based on the type of request.
     N/A http_status N/A status HTTP_200_OK N/A N/A N/A request method POST N/A N/A http_status N/A _labels_post request instance N/A N/A N/A N/A request method GET label N/A N/A data N/A N/A tag N/A name N/A tag N/A N/A N/A N/A N/A instance tags filter name label values name N/A N/A N/A N/A N/A request method DELETE label N/A N/A N/A http_status data N/A _labels_delete label instance N/A N/A data N/A list N/A N/A N/A instance tags names N/A N/A Response data status http_status N/A LabelsMixin N/A object N/A labels N/A N/A self request format N/A json kwargs N/A N/A xform N/A N/A self get_object N/A label N/A N/A kwargs get label N/A N/A process_label_request request label xform N/A N/A detail_route methods N/A GET POST DELETE extra_lookup_fields N/A label N/A