Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad keyword BinOpMod Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Num body Expr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str ListLoad Str Str Str Dict Str Str Str Num Str ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Num body Expr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str ListLoad Str Str Str Dict Str Str Str Num Str ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str ListLoad Str Dict Str Str Str Num Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str ListLoad Str Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str ListLoad Str Dict Str Str Str Num Str ListLoad Dict Str Str Str Num Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body If CompareEq NameLoad Num body Assign NameStore NameLoad Assign NameStore Call NameLoad keyword BinOpMod Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str NameLoad Dict Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str Str Dict Str Str Str Num Str NameLoad Dict Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str NameLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Num Str Str Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num Str NameLoad Dict Str Str Str Num Str Str Dict Str Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A django.test TestCase rest_framework serializers tests.models ForeignKeySource ForeignKeyTarget NullableForeignKeySource ForeignKeyTargetSerializer N/A N/A serializers ModelSerializer N/A N/A sources N/A N/A serializers SlugRelatedField slug_field name queryset N/A N/A N/A ForeignKeySource objects all many True Meta N/A N/A N/A model ForeignKeyTarget N/A N/A ForeignKeySourceSerializer N/A N/A serializers ModelSerializer N/A N/A target N/A N/A serializers SlugRelatedField slug_field name queryset N/A N/A N/A ForeignKeyTarget objects all Meta N/A N/A N/A model ForeignKeySource N/A N/A NullableForeignKeySourceSerializer N/A N/A serializers ModelSerializer N/A N/A target N/A N/A serializers SlugRelatedField slug_field name queryset N/A N/A N/A ForeignKeyTarget objects all allow_null True Meta N/A N/A N/A model NullableForeignKeySource N/A N/A SlugForeignKeyTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A target N/A ForeignKeyTarget name target-1 N/A N/A N/A target save N/A new_target N/A ForeignKeyTarget name target-2 N/A N/A N/A new_target save N/A idx N/A range 1 4 N/A N/A source N/A ForeignKeySource name N/A source-%d idx target target N/A N/A N/A source save N/A test_foreign_key_retrieve N/A N/A self N/A N/A N/A queryset N/A N/A N/A ForeignKeySource objects all N/A serializer N/A ForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-1 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 target-1 N/A N/A N/A self assertNumQueries 4 N/A N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_retrieve_select_related N/A N/A self N/A N/A N/A queryset N/A N/A N/A N/A N/A ForeignKeySource objects all select_related target N/A serializer N/A ForeignKeySourceSerializer queryset many True N/A N/A N/A self assertNumQueries 1 N/A N/A N/A serializer data N/A test_reverse_foreign_key_retrieve N/A N/A self N/A N/A N/A queryset N/A N/A N/A ForeignKeyTarget objects all N/A serializer N/A ForeignKeyTargetSerializer queryset many True N/A expected N/A N/A id name sources 1 target-1 N/A source-1 source-2 source-3 N/A id name sources 2 target-2 N/A N/A N/A N/A self assertEqual N/A serializer data expected N/A test_reverse_foreign_key_retrieve_prefetch_related N/A N/A self N/A N/A N/A queryset N/A N/A N/A N/A N/A ForeignKeyTarget objects all prefetch_related sources N/A serializer N/A ForeignKeyTargetSerializer queryset many True N/A N/A N/A self assertNumQueries 2 N/A N/A N/A serializer data N/A test_foreign_key_update N/A N/A self N/A N/A N/A data N/A id name target 1 source-1 target-2 N/A instance N/A N/A N/A ForeignKeySource objects get pk 1 N/A serializer N/A ForeignKeySourceSerializer instance data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A queryset N/A N/A N/A ForeignKeySource objects all N/A serializer N/A ForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-2 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 target-1 N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_update_incorrect_type N/A N/A self N/A N/A N/A data N/A id name target 1 source-1 123 N/A instance N/A N/A N/A ForeignKeySource objects get pk 1 N/A serializer N/A ForeignKeySourceSerializer instance data data N/A N/A N/A self assertFalse N/A N/A serializer is_valid N/A N/A N/A self assertEqual N/A serializer errors N/A target N/A Object with name=123 does not exist. N/A test_reverse_foreign_key_update N/A N/A self N/A N/A N/A data N/A id name sources 2 target-2 N/A source-1 source-3 N/A instance N/A N/A N/A ForeignKeyTarget objects get pk 2 N/A serializer N/A ForeignKeyTargetSerializer instance data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A queryset N/A N/A N/A ForeignKeyTarget objects all N/A new_serializer N/A ForeignKeyTargetSerializer queryset many True N/A expected N/A N/A id name sources 1 target-1 N/A source-1 source-2 source-3 N/A id name sources 2 target-2 N/A N/A N/A N/A self assertEqual N/A new_serializer data expected N/A N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A queryset N/A N/A N/A ForeignKeyTarget objects all N/A serializer N/A ForeignKeyTargetSerializer queryset many True N/A expected N/A N/A id name sources 1 target-1 N/A source-2 N/A id name sources 2 target-2 N/A source-1 source-3 N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_create N/A N/A self N/A N/A N/A data N/A id name target 4 source-4 target-2 N/A serializer N/A ForeignKeySourceSerializer data data N/A N/A N/A serializer is_valid N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A obj N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A N/A N/A self assertEqual N/A obj name source-4 N/A queryset N/A N/A N/A ForeignKeySource objects all N/A serializer N/A ForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-1 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 target-1 N/A id name target 4 source-4 target-2 N/A N/A N/A self assertEqual N/A serializer data expected N/A test_reverse_foreign_key_create N/A N/A self N/A N/A N/A data N/A id name sources 3 target-3 N/A source-1 source-3 N/A serializer N/A ForeignKeyTargetSerializer data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A obj N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A N/A N/A self assertEqual N/A obj name target-3 N/A queryset N/A N/A N/A ForeignKeyTarget objects all N/A serializer N/A ForeignKeyTargetSerializer queryset many True N/A expected N/A N/A id name sources 1 target-1 N/A source-2 N/A id name sources 2 target-2 N/A N/A id name sources 3 target-3 N/A source-1 source-3 N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_update_with_invalid_null N/A N/A self N/A N/A N/A data N/A id name target 1 source-1 None N/A instance N/A N/A N/A ForeignKeySource objects get pk 1 N/A serializer N/A ForeignKeySourceSerializer instance data data N/A N/A N/A self assertFalse N/A N/A serializer is_valid N/A N/A N/A self assertEqual N/A serializer errors N/A target N/A This field may not be null. N/A N/A SlugNullableForeignKeyTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A target N/A ForeignKeyTarget name target-1 N/A N/A N/A target save N/A idx N/A range 1 4 N/A N/A N/A idx 3 N/A N/A target None N/A source N/A NullableForeignKeySource name N/A source-%d idx target target N/A N/A N/A source save N/A test_foreign_key_retrieve_with_null N/A N/A self N/A N/A N/A queryset N/A N/A N/A NullableForeignKeySource objects all N/A serializer N/A NullableForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-1 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 None N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_create_with_valid_null N/A N/A self N/A N/A N/A data N/A id name target 4 source-4 None N/A serializer N/A NullableForeignKeySourceSerializer data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A obj N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A N/A N/A self assertEqual N/A obj name source-4 N/A queryset N/A N/A N/A NullableForeignKeySource objects all N/A serializer N/A NullableForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-1 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 None N/A id name target 4 source-4 None N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_create_with_valid_emptystring N/A N/A self N/A N/A N/A 
        The emptystring should be interpreted as null in the context
        of relationships.
         N/A data N/A id name target 4 source-4 N/A expected_data N/A id name target 4 source-4 None N/A serializer N/A NullableForeignKeySourceSerializer data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A obj N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data expected_data N/A N/A N/A self assertEqual N/A obj name source-4 N/A queryset N/A N/A N/A NullableForeignKeySource objects all N/A serializer N/A NullableForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 target-1 N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 None N/A id name target 4 source-4 None N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_update_with_valid_null N/A N/A self N/A N/A N/A data N/A id name target 1 source-1 None N/A instance N/A N/A N/A NullableForeignKeySource objects get pk 1 N/A serializer N/A NullableForeignKeySourceSerializer instance data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data data N/A queryset N/A N/A N/A NullableForeignKeySource objects all N/A serializer N/A NullableForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 None N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 None N/A N/A N/A self assertEqual N/A serializer data expected N/A test_foreign_key_update_with_valid_emptystring N/A N/A self N/A N/A N/A 
        The emptystring should be interpreted as null in the context
        of relationships.
         N/A data N/A id name target 1 source-1 N/A expected_data N/A id name target 1 source-1 None N/A instance N/A N/A N/A NullableForeignKeySource objects get pk 1 N/A serializer N/A NullableForeignKeySourceSerializer instance data data N/A N/A N/A self assertTrue N/A N/A serializer is_valid N/A N/A N/A serializer save N/A N/A N/A self assertEqual N/A serializer data expected_data N/A queryset N/A N/A N/A NullableForeignKeySource objects all N/A serializer N/A NullableForeignKeySourceSerializer queryset many True N/A expected N/A N/A id name target 1 source-1 None N/A id name target 2 source-2 target-1 N/A id name target 3 source-3 None N/A N/A N/A self assertEqual N/A serializer data expected N/A N/A