Module ImportFrom alias ImportFrom alias identifier ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict TryFinally body TryExcept body Expr Yield handlers ExceptHandler type NameLoad body Raise finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad ClassDef bases NameLoad body Assign NameStore Str Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call NameLoad keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str keyword Call NameLoad keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Num Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call NameLoad keyword Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Num Str Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Call NameLoad decorator_list decorator_list Call NameLoad CompareGtE Call AttributeLoad NameLoad attr Str Str
N/A contextlib contextmanager six.moves cStringIO StringIO datetime datetime N/A N/A unittest skipUnless N/A N/A N/A ImportError N/A unittest2 skipUnless N/A django django.test TestCase django.core management simple_history models sh_models simple_history.management.commands populate_history N/A models replace_registry N/A N/A new_value N/A None N/A N/A hidden_registry N/A sh_models registered_models N/A N/A sh_models registered_models N/A new_value N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A Exception N/A N/A N/A N/A N/A sh_models registered_models hidden_registry N/A contextmanager TestPopulateHistory N/A TestCase N/A N/A command_name populate_history N/A command_error N/A N/A management CommandError SystemExit test_no_args N/A N/A self N/A N/A N/A out N/A StringIO N/A N/A N/A management call_command N/A self command_name stdout out stderr N/A StringIO N/A N/A N/A self assertIn N/A N/A populate_history Command COMMAND_HINT N/A N/A out getvalue N/A test_bad_args N/A N/A self N/A N/A N/A test_data N/A N/A N/A N/A populate_history Command MODEL_NOT_HISTORICAL N/A tests.place N/A N/A N/A populate_history Command MODEL_NOT_FOUND N/A invalid.model N/A N/A N/A populate_history Command MODEL_NOT_FOUND N/A bad_key N/A N/A msg args test_data N/A N/A out N/A StringIO N/A N/A N/A self assertRaises N/A self command_error N/A management call_command N/A self command_name stdout N/A StringIO stderr out args N/A N/A N/A self assertIn msg N/A N/A out getvalue N/A test_auto_populate N/A N/A self N/A N/A N/A N/A N/A N/A N/A models Poll objects create question Will this populate? pub_date N/A N/A datetime now N/A N/A N/A N/A N/A N/A N/A models Poll history all delete N/A N/A N/A management call_command N/A self command_name auto True stdout N/A StringIO stderr N/A StringIO N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A models Poll history all count 1 N/A test_specific_populate N/A N/A self N/A N/A N/A N/A N/A N/A N/A models Poll objects create question Will this populate? pub_date N/A N/A datetime now N/A N/A N/A N/A N/A N/A N/A models Poll history all delete N/A N/A N/A N/A N/A models Book objects create isbn 9780007117116 N/A N/A N/A N/A N/A N/A N/A models Book history all delete N/A N/A N/A management call_command N/A self command_name tests.book stdout N/A StringIO stderr N/A StringIO N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A models Book history all count 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A models Poll history all count 0 N/A test_failing_wont_save N/A N/A self N/A N/A N/A N/A N/A N/A N/A models Poll objects create question Will this populate? pub_date N/A N/A datetime now N/A N/A N/A N/A N/A N/A N/A models Poll history all delete N/A N/A N/A self assertRaises N/A self command_error N/A management call_command N/A self command_name tests.poll tests.invalid_model stdout N/A StringIO stderr N/A StringIO N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A models Poll history all count 0 N/A test_multi_table N/A N/A self N/A N/A N/A data N/A rating name 5 Tea 'N More N/A N/A N/A N/A N/A models Restaurant objects create data N/A N/A N/A N/A N/A N/A N/A models Restaurant updates all delete N/A N/A N/A management call_command N/A self command_name tests.restaurant stdout N/A StringIO stderr N/A StringIO N/A update_record N/A N/A N/A N/A N/A models Restaurant updates all N/A 0 N/A N/A attr value N/A N/A data items N/A N/A N/A N/A self assertEqual N/A getattr update_record attr value N/A test_existing_objects N/A N/A self N/A N/A N/A data N/A rating name 5 Tea 'N More N/A out N/A StringIO N/A N/A N/A N/A N/A models Restaurant objects create data N/A pre_call_count N/A N/A N/A N/A models Restaurant updates count N/A N/A N/A management call_command N/A self command_name tests.restaurant stdout N/A StringIO stderr out N/A N/A N/A self assertEqual N/A N/A N/A N/A models Restaurant updates count pre_call_count N/A N/A N/A self assertIn N/A N/A populate_history Command EXISTING_HISTORY_FOUND N/A N/A out getvalue N/A test_no_historical N/A N/A self N/A N/A N/A out N/A StringIO N/A N/A replace_registry N/A N/A N/A N/A management call_command N/A self command_name auto True stdout out N/A N/A N/A self assertIn N/A N/A populate_history Command NO_REGISTERED_MODELS N/A N/A out getvalue N/A N/A TestMigrate N/A TestCase N/A test_makemigration_command N/A N/A self N/A N/A N/A N/A N/A management call_command makemigrations migration_test_app stdout N/A StringIO N/A test_migrate_command N/A N/A self N/A N/A N/A N/A N/A management call_command migrate migration_test_app fake True stdout N/A StringIO N/A N/A N/A skipUnless N/A N/A N/A django get_version 1.7 Requires 1.7 migrations