Module ImportFrom alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str ListLoad Str ListLoad Str Assign NameStore ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Assign NameStore ListLoad Dict Str Str Num NameLoad Dict Str Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Assign NameStore ListLoad Call NameLoad keyword Num keyword NameLoad Call NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Call NameLoad keyword Num keyword NameLoad Call NameLoad keyword Num keyword NameLoad Assign NameStore ListLoad Dict Str Str Num NameLoad Dict Str Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str Assign NameStore ListLoad Dict Str Str Num NameLoad Dict Str Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str ListLoad Str Str ListLoad Str Str Assign NameStore Dict Str Str ListLoad Num Num ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str ListLoad Str Str ListLoad Str Str Assign NameStore Call NameLoad keyword ListLoad Num Num keyword ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword ListLoad Num Num keyword ListLoad NameLoad NameLoad Assign NameStore Dict Str Str ListLoad Num Num ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str Assign NameStore Dict Str Str ListLoad Num Num ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str ListLoad ListLoad Str Str ListLoad Str Str ListLoad ListLoad Str Str ListLoad Str Str Assign NameStore Dict Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str Assign NameStore Dict Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list Assign NameStore Call NameLoad keyword ListLoad keyword NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Dict Str ListLoad Str decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad keyword Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Assert CompareNotIn Str NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Dict Assert CompareEq AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Num Num Num decorator_list Assign NameStore Call NameLoad keyword Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Assert CompareNotIn Str NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Dict Assert CompareEq AttributeLoad NameLoad attr Dict decorator_list decorator_list
N/A django.utils.datastructures MultiValueDict rest_framework serializers BasicObject N/A N/A N/A 
    A mock object for testing serializer save behavior.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A self _data kwargs N/A N/A key value N/A N/A kwargs items N/A N/A N/A setattr self key value N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A N/A self _data keys N/A N/A N/A other _data keys N/A N/A False N/A key N/A N/A N/A self _data keys N/A N/A N/A N/A N/A self _data N/A key N/A N/A other _data N/A key N/A N/A False N/A True N/A N/A TestListSerializer N/A N/A N/A 
    Tests for using a ListSerializer as a top-level serializer.
    Note that this is in contrast to using ListSerializer as a field.
     setup N/A N/A self N/A N/A IntegerListSerializer N/A N/A serializers ListSerializer N/A N/A child N/A N/A serializers IntegerField N/A N/A N/A self Serializer IntegerListSerializer N/A test_validate N/A N/A self N/A N/A N/A 
        Validating a list of items should return a list of validated items.
         N/A input_data N/A 123 456 N/A expected_output N/A 123 456 N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A test_validate_html_input N/A N/A self N/A N/A N/A 
        HTML input should be able to mock list structures using [x] style ids.
         N/A input_data N/A MultiValueDict N/A [0] [1] N/A 123 N/A 456 N/A expected_output N/A 123 456 N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A N/A TestListSerializerContainingNestedSerializer N/A N/A N/A 
    Tests for using a ListSerializer containing another serializer.
     setup N/A N/A self N/A N/A TestSerializer N/A N/A serializers Serializer N/A N/A integer N/A N/A serializers IntegerField N/A boolean N/A N/A serializers BooleanField create N/A N/A self validated_data N/A N/A N/A N/A BasicObject validated_data N/A N/A ObjectListSerializer N/A N/A serializers ListSerializer N/A N/A child N/A TestSerializer N/A N/A N/A self Serializer ObjectListSerializer N/A test_validate N/A N/A self N/A N/A N/A 
        Validating a list of dictionaries should return a list of
        validated dictionaries.
         N/A input_data N/A N/A integer boolean 123 true N/A integer boolean 456 false N/A expected_output N/A N/A integer boolean 123 True N/A integer boolean 456 False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A test_create N/A N/A self N/A N/A N/A 
        Creating from a list of dictionaries should return a list of objects.
         N/A input_data N/A N/A integer boolean 123 true N/A integer boolean 456 false N/A expected_output N/A N/A BasicObject integer 123 boolean True N/A BasicObject integer 456 boolean False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A N/A serializer save expected_output N/A test_serialize N/A N/A self N/A N/A N/A 
        Serialization of a list of objects should return a list of dictionaries.
         N/A input_objects N/A N/A BasicObject integer 123 boolean True N/A BasicObject integer 456 boolean False N/A expected_output N/A N/A integer boolean 123 True N/A integer boolean 456 False N/A serializer N/A N/A self Serializer input_objects N/A N/A N/A serializer data expected_output N/A test_validate_html_input N/A N/A self N/A N/A N/A 
        HTML input should be able to mock list structures using [x]
        style prefixes.
         N/A input_data N/A MultiValueDict N/A [0]integer [0]boolean [1]integer [1]boolean N/A 123 N/A true N/A 456 N/A false N/A expected_output N/A N/A integer boolean 123 True N/A integer boolean 456 False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A N/A TestNestedListSerializer N/A N/A N/A 
    Tests for using a ListSerializer as a field.
     setup N/A N/A self N/A N/A TestSerializer N/A N/A serializers Serializer N/A N/A integers N/A N/A serializers ListSerializer child N/A N/A serializers IntegerField N/A booleans N/A N/A serializers ListSerializer child N/A N/A serializers BooleanField create N/A N/A self validated_data N/A N/A N/A N/A BasicObject validated_data N/A N/A N/A N/A self Serializer TestSerializer N/A test_validate N/A N/A self N/A N/A N/A 
        Validating a list of items should return a list of validated items.
         N/A input_data N/A integers booleans N/A 123 456 N/A true false N/A expected_output N/A integers booleans N/A 123 456 N/A True False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A test_create N/A N/A self N/A N/A N/A 
        Creation with a list of items return an object with an attribute that
        is a list of items.
         N/A input_data N/A integers booleans N/A 123 456 N/A true false N/A expected_output N/A BasicObject integers N/A 123 456 booleans N/A True False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A N/A serializer save expected_output N/A test_serialize N/A N/A self N/A N/A N/A 
        Serialization of a list of items should return a list of items.
         N/A input_object N/A BasicObject integers N/A 123 456 booleans N/A True False N/A expected_output N/A integers booleans N/A 123 456 N/A True False N/A serializer N/A N/A self Serializer input_object N/A N/A N/A serializer data expected_output N/A test_validate_html_input N/A N/A self N/A N/A N/A 
        HTML input should be able to mock list structures using [x]
        style prefixes.
         N/A input_data N/A MultiValueDict N/A integers[0] integers[1] booleans[0] booleans[1] N/A 123 N/A 456 N/A true N/A false N/A expected_output N/A integers booleans N/A 123 456 N/A True False N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A N/A TestNestedListOfListsSerializer N/A N/A setup N/A N/A self N/A N/A TestSerializer N/A N/A serializers Serializer N/A N/A integers N/A N/A serializers ListSerializer child N/A N/A serializers ListSerializer child N/A N/A serializers IntegerField N/A booleans N/A N/A serializers ListSerializer child N/A N/A serializers ListSerializer child N/A N/A serializers BooleanField N/A N/A N/A self Serializer TestSerializer N/A test_validate N/A N/A self N/A N/A N/A input_data N/A integers booleans N/A N/A 123 456 N/A 789 0 N/A N/A true true N/A false true N/A expected_output N/A integers booleans N/A N/A 123 456 N/A 789 0 N/A N/A True True N/A False True N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A test_validate_html_input N/A N/A self N/A N/A N/A 
        HTML input should be able to mock lists of lists using [x][y]
        style prefixes.
         N/A input_data N/A MultiValueDict N/A integers[0][0] integers[0][1] integers[1][0] integers[1][1] booleans[0][0] booleans[0][1] booleans[1][0] booleans[1][1] N/A 123 N/A 456 N/A 789 N/A 000 N/A true N/A true N/A false N/A true N/A expected_output N/A integers booleans N/A N/A 123 456 N/A 789 0 N/A N/A True True N/A False True N/A serializer N/A N/A self Serializer data input_data N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data expected_output N/A N/A TestListSerializerClass N/A N/A N/A Tests for a custom list_serializer_class. test_list_serializer_class_validate N/A N/A self N/A N/A CustomListSerializer N/A N/A serializers ListSerializer N/A validate N/A N/A self attrs N/A N/A N/A N/A N/A serializers ValidationError Non field error N/A N/A TestSerializer N/A N/A serializers Serializer N/A Meta N/A N/A N/A list_serializer_class CustomListSerializer N/A N/A N/A serializer N/A TestSerializer data N/A many True N/A N/A N/A N/A serializer is_valid N/A N/A N/A serializer errors N/A non_field_errors N/A Non field error N/A N/A TestSerializerPartialUsage N/A N/A N/A 
    When not submitting key for list fields or multiple choice, partial
    serialization should result in an empty state (key not there), not
    an empty list.

    Regression test for Github issue #2761.
     test_partial_listfield N/A N/A self N/A N/A ListSerializer N/A N/A serializers Serializer N/A N/A listdata N/A N/A serializers ListField N/A N/A serializer N/A ListSerializer data N/A MultiValueDict partial True N/A result N/A N/A serializer to_internal_value data N/A N/A N/A listdata result N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data N/A N/A N/A N/A serializer errors N/A N/A test_partial_multiplechoice N/A N/A self N/A N/A MultipleChoiceSerializer N/A N/A serializers Serializer N/A N/A multiplechoice N/A N/A serializers MultipleChoiceField choices N/A 1 2 3 N/A N/A serializer N/A MultipleChoiceSerializer data N/A MultiValueDict partial True N/A result N/A N/A serializer to_internal_value data N/A N/A N/A multiplechoice result N/A N/A N/A serializer is_valid N/A N/A N/A serializer validated_data N/A N/A N/A N/A serializer errors N/A N/A N/A