Module ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore IfExp NameLoad Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad IfExp CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num SubscriptLoad NameLoad Index BinOpAdd NameLoad Num NameLoad NameLoad Return NameLoad decorator_list
N/A Diff N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self user None N/A N/A self date None N/A N/A self note None N/A N/A self fields N/A N/A N/A diff_historical_object N/A N/A original_historical_object changed_historical_object N/A N/A N/A 
    Performs a diff between two historical objects to determine which fields have changed.

    The historical_object must have a HistoricalRecord attribute named history, a
    TextField named history_note, and
    a Meta field named diff_fields containing a list of field names to diff.
    :param original_historical_object: the original historical object
    :param changed_historical_object: the changed historical object
    :return: a Diff
     N/A diff N/A Diff N/A N/A diff date N/A changed_historical_object history_date N/A N/A diff user N/A changed_historical_object history_user N/A N/A diff note N/A changed_historical_object history_note N/A field N/A N/A N/A changed_historical_object history_object _meta diff_fields N/A N/A value N/A getattr changed_historical_object field N/A N/A value N/A N/A value None N/A original_value N/A original_historical_object N/A getattr original_historical_object field None N/A N/A original_value N/A N/A original_value None N/A N/A value original_value N/A N/A N/A N/A diff fields N/A field N/A original_value value N/A diff N/A diff_object_history N/A N/A obj N/A N/A N/A 
    Performs a diff on all of an object's historical objects.
    :param obj: the object which has a history
    :return: a list of Diffs, from most recent historical object backwards
     N/A diffs N/A N/A historical_objects N/A list N/A N/A N/A obj history all N/A N/A i historical_object N/A enumerate historical_objects N/A N/A N/A N/A diffs append N/A diff_historical_object N/A N/A i N/A N/A len historical_objects 1 N/A historical_objects N/A N/A i 1 None historical_object N/A diffs N/A