Module ImportFrom alias ImportFrom alias alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str decorator_list decorator_list
N/A django.test TestCase models A B C D DataPoint RelatedPoint SimpleTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self a1 N/A N/A N/A A objects create N/A N/A self a2 N/A N/A N/A A objects create N/A x N/A range 20 N/A N/A N/A N/A N/A B objects create a N/A self a1 N/A N/A N/A N/A D objects create a N/A self a1 N/A test_nonempty_update N/A N/A self N/A N/A N/A 
        Test that update changes the right number of rows for a nonempty queryset
         N/A num_updated N/A N/A N/A N/A self a1 b_set update y 100 N/A N/A N/A self assertEqual num_updated 20 N/A cnt N/A N/A N/A N/A N/A B objects filter y 100 count N/A N/A N/A self assertEqual cnt 20 N/A test_empty_update N/A N/A self N/A N/A N/A 
        Test that update changes the right number of rows for an empty queryset
         N/A num_updated N/A N/A N/A N/A self a2 b_set update y 100 N/A N/A N/A self assertEqual num_updated 0 N/A cnt N/A N/A N/A N/A N/A B objects filter y 100 count N/A N/A N/A self assertEqual cnt 0 N/A test_nonempty_update_with_inheritance N/A N/A self N/A N/A N/A 
        Test that update changes the right number of rows for an empty queryset
        when the update affects only a base table
         N/A num_updated N/A N/A N/A N/A self a1 d_set update y 100 N/A N/A N/A self assertEqual num_updated 20 N/A cnt N/A N/A N/A N/A N/A D objects filter y 100 count N/A N/A N/A self assertEqual cnt 20 N/A test_empty_update_with_inheritance N/A N/A self N/A N/A N/A 
        Test that update changes the right number of rows for an empty queryset
        when the update affects only a base table
         N/A num_updated N/A N/A N/A N/A self a2 d_set update y 100 N/A N/A N/A self assertEqual num_updated 0 N/A cnt N/A N/A N/A N/A N/A D objects filter y 100 count N/A N/A N/A self assertEqual cnt 0 N/A N/A AdvancedTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self d0 N/A N/A N/A DataPoint objects create name d0 value apple N/A N/A self d2 N/A N/A N/A DataPoint objects create name d2 value banana N/A N/A self d3 N/A N/A N/A DataPoint objects create name d3 value banana N/A N/A self r1 N/A N/A N/A RelatedPoint objects create name r1 data N/A self d3 N/A test_update N/A N/A self N/A N/A N/A 
        Objects are updated by first filtering the candidates into a queryset
        and then calling the update() method. It executes immediately and
        returns nothing.
         N/A resp N/A N/A N/A N/A N/A DataPoint objects filter value apple update name d1 N/A N/A N/A self assertEqual resp 1 N/A resp N/A N/A N/A DataPoint objects filter value apple N/A N/A N/A self assertEqual N/A list resp N/A N/A self d0 N/A test_update_multiple_objects N/A N/A self N/A N/A N/A 
        We can update multiple objects at once.
         N/A resp N/A N/A N/A N/A N/A DataPoint objects filter value banana update value pineapple N/A N/A N/A self assertEqual resp 2 N/A N/A N/A self assertEqual N/A N/A N/A N/A DataPoint objects get name d2 value pineapple N/A test_update_fk N/A N/A self N/A N/A N/A 
        Foreign key fields can also be updated, although you can only update
        the object referred to, not anything inside the related object.
         N/A resp N/A N/A N/A N/A N/A RelatedPoint objects filter name r1 update data N/A self d0 N/A N/A N/A self assertEqual resp 1 N/A resp N/A N/A N/A RelatedPoint objects filter data__name d0 N/A N/A N/A self assertEqual N/A list resp N/A N/A self r1 N/A test_update_multiple_fields N/A N/A self N/A N/A N/A 
        Multiple fields can be updated at once
         N/A resp N/A N/A N/A N/A N/A DataPoint objects filter value apple update value fruit another_value peach N/A N/A N/A self assertEqual resp 1 N/A d N/A N/A N/A DataPoint objects get name d0 N/A N/A N/A self assertEqual N/A d value fruit N/A N/A N/A self assertEqual N/A d another_value peach N/A test_update_all N/A N/A self N/A N/A N/A 
        In the rare case you want to update every instance of a model, update()
        is also a manager method.
         N/A N/A N/A self assertEqual N/A N/A N/A DataPoint objects update value thing 3 N/A resp N/A N/A N/A N/A N/A DataPoint objects values value distinct N/A N/A N/A self assertEqual N/A list resp N/A N/A value thing N/A test_update_slice_fail N/A N/A self N/A N/A N/A 
        We do not support update on already sliced query sets.
         N/A method N/A N/A N/A N/A N/A DataPoint objects all N/A 2 update N/A N/A N/A self assertRaises AssertionError method another_value another thing N/A N/A