Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str Assign NameStore Dict Str Str Str Str NameLoad ListLoad Str ListLoad Dict Str Str Str NameLoad Str NameLoad Dict Str Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword ListLoad Call NameLoad keyword Str Call NameLoad keyword Str keyword ListLoad Call NameLoad keyword Str keyword Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Num ListLoad Str ListLoad Dict Str Str Str NameLoad Str NameLoad Dict Str Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword ListLoad Call NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign AttributeStore NameLoad attr Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list
N/A __future__ unicode_literals N/A json N/A datetime django.core.files.uploadedfile SimpleUploadedFile django.test TestCase django.utils timezone tests.models Band BandMember Album Restaurant Dish MenuItem Chef Wine Review Log Document SerializeTest N/A TestCase N/A test_serialize N/A N/A self N/A N/A N/A beatles N/A Band name The Beatles members N/A N/A BandMember name John Lennon N/A BandMember name Paul McCartney N/A expected N/A pk albums name members None N/A The Beatles N/A N/A pk name band None John Lennon None N/A pk name band None Paul McCartney None N/A N/A N/A self assertEqual expected N/A N/A beatles serializable_data N/A test_serialize_json_with_dates N/A N/A self N/A N/A N/A beatles N/A Band name The Beatles members N/A N/A BandMember name John Lennon N/A BandMember name Paul McCartney albums N/A N/A Album name Rubber Soul release_date N/A N/A datetime date 1965 12 3 N/A beatles_json N/A N/A beatles to_json N/A N/A N/A self assertTrue N/A John Lennon beatles_json N/A N/A N/A self assertTrue N/A 1965-12-03 beatles_json N/A unpacked_beatles N/A N/A Band from_json beatles_json N/A N/A N/A self assertEqual N/A N/A datetime date 1965 12 3 N/A N/A N/A N/A N/A unpacked_beatles albums all N/A 0 release_date N/A test_deserialize N/A N/A self N/A N/A N/A beatles N/A N/A Band from_serializable_data N/A pk albums name members 9 N/A The Beatles N/A N/A pk name band None John Lennon None N/A pk name band None Paul McCartney None N/A N/A N/A self assertEqual 9 N/A beatles id N/A N/A N/A self assertEqual The Beatles N/A beatles name N/A N/A N/A self assertEqual 2 N/A N/A N/A beatles members count N/A N/A N/A self assertEqual BandMember N/A N/A N/A N/A N/A beatles members all N/A 0 __class__ N/A test_deserialize_json N/A N/A self N/A N/A N/A beatles N/A N/A Band from_json {"pk": 9, "albums": [], "name": "The Beatles", "members": [{"pk": null, "name": "John Lennon", "band": null}, {"pk": null, "name": "Paul McCartney", "band": null}]} N/A N/A N/A self assertEqual 9 N/A beatles id N/A N/A N/A self assertEqual The Beatles N/A beatles name N/A N/A N/A self assertEqual 2 N/A N/A N/A beatles members count N/A N/A N/A self assertEqual BandMember N/A N/A N/A N/A N/A beatles members all N/A 0 __class__ N/A test_serialize_with_multi_table_inheritance N/A N/A self N/A N/A N/A fat_duck N/A Restaurant name The Fat Duck serves_hot_dogs False reviews N/A N/A Review author Michael Winner body Rubbish. N/A data N/A N/A json loads N/A N/A fat_duck to_json N/A N/A N/A self assertEqual N/A data N/A name The Fat Duck N/A N/A N/A self assertEqual N/A data N/A serves_hot_dogs False N/A N/A N/A self assertEqual N/A N/A N/A data N/A reviews N/A 0 N/A author Michael Winner N/A test_deserialize_with_multi_table_inheritance N/A N/A self N/A N/A N/A fat_duck N/A N/A Restaurant from_json {"pk": 42, "name": "The Fat Duck", "serves_hot_dogs": false, "reviews": [{"pk": null, "author": "Michael Winner", "body": "Rubbish."}]} N/A N/A N/A self assertEqual N/A fat_duck id 42 N/A N/A N/A self assertEqual N/A fat_duck name The Fat Duck N/A N/A N/A self assertEqual N/A fat_duck serves_hot_dogs False N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A fat_duck reviews all N/A 0 author Michael Winner N/A test_dangling_foreign_keys N/A N/A self N/A N/A N/A heston_blumenthal N/A N/A N/A Chef objects create name Heston Blumenthal N/A snail_ice_cream N/A N/A N/A Dish objects create name Snail ice cream N/A chateauneuf N/A N/A N/A Wine objects create name Chateauneuf-du-Pape 1979 N/A fat_duck N/A Restaurant name The Fat Duck proprietor heston_blumenthal serves_hot_dogs False menu_items N/A N/A MenuItem dish snail_ice_cream price 20.00 recommended_wine chateauneuf N/A fat_duck_json N/A N/A fat_duck to_json N/A fat_duck N/A N/A Restaurant from_json fat_duck_json N/A N/A N/A self assertEqual Heston Blumenthal N/A N/A fat_duck proprietor name N/A N/A N/A self assertEqual Chateauneuf-du-Pape 1979 N/A N/A N/A N/A N/A N/A fat_duck menu_items all N/A 0 recommended_wine name N/A N/A N/A heston_blumenthal delete N/A fat_duck N/A N/A Restaurant from_json fat_duck_json N/A N/A N/A self assertEqual None N/A fat_duck proprietor N/A N/A N/A self assertEqual Chateauneuf-du-Pape 1979 N/A N/A N/A N/A N/A N/A fat_duck menu_items all N/A 0 recommended_wine name N/A N/A N/A chateauneuf delete N/A fat_duck N/A N/A Restaurant from_json fat_duck_json N/A N/A N/A self assertEqual None N/A N/A N/A N/A N/A fat_duck menu_items all N/A 0 recommended_wine N/A N/A N/A snail_ice_cream delete N/A fat_duck N/A N/A Restaurant from_json fat_duck_json N/A N/A N/A self assertEqual 0 N/A N/A N/A fat_duck menu_items count N/A test_deserialize_with_sort_order N/A N/A self N/A N/A N/A beatles N/A N/A Band from_json {"pk": null, "albums": [{"pk": null, "name": "With The Beatles", "sort_order": 2}, {"pk": null, "name": "Please Please Me", "sort_order": 1}], "name": "The Beatles", "members": []} N/A N/A N/A self assertEqual 2 N/A N/A N/A beatles albums count N/A N/A N/A self assertEqual Please Please Me N/A N/A N/A N/A N/A beatles albums all N/A 0 name N/A N/A N/A self assertEqual With The Beatles N/A N/A N/A N/A N/A beatles albums all N/A 1 name N/A test_deserialize_with_reversed_sort_order N/A N/A self N/A N/A N/A N/A N/A Album _meta ordering N/A -sort_order N/A beatles N/A N/A Band from_json {"pk": null, "albums": [{"pk": null, "name": "Please Please Me", "sort_order": 1}, {"pk": null, "name": "With The Beatles", "sort_order": 2}], "name": "The Beatles", "members": []} N/A N/A N/A Album _meta ordering N/A sort_order N/A N/A N/A self assertEqual 2 N/A N/A N/A beatles albums count N/A N/A N/A self assertEqual With The Beatles N/A N/A N/A N/A N/A beatles albums all N/A 0 name N/A N/A N/A self assertEqual Please Please Me N/A N/A N/A N/A N/A beatles albums all N/A 1 name N/A test_deserialize_with_multiple_sort_order N/A N/A self N/A N/A N/A N/A N/A Album _meta ordering N/A sort_order name N/A beatles N/A N/A Band from_json {"pk": null, "albums": [{"pk": 1, "name": "With The Beatles", "sort_order": 1}, {"pk": 2, "name": "Please Please Me", "sort_order": 1}, {"pk": 3, "name": "Please Please Me", "sort_order": 2}], "name": "The Beatles", "members": []} N/A N/A N/A Album _meta ordering N/A sort_order N/A N/A N/A self assertEqual 3 N/A N/A N/A beatles albums count N/A N/A N/A self assertEqual 2 N/A N/A N/A N/A N/A beatles albums all N/A 0 pk N/A N/A N/A self assertEqual 1 N/A N/A N/A N/A N/A beatles albums all N/A 1 pk N/A N/A N/A self assertEqual 3 N/A N/A N/A N/A N/A beatles albums all N/A 2 pk N/A N/A WAGTAIL_05_RELEASE_DATETIME N/A N/A datetime datetime 2014 8 1 11 1 42 test_serialise_with_naive_datetime N/A N/A self N/A N/A N/A 
        This tests that naive datetimes are saved as UTC
         N/A log N/A Log time N/A self WAGTAIL_05_RELEASE_DATETIME data Wagtail 0.5 released N/A log_json N/A N/A json loads N/A N/A log to_json N/A N/A N/A self assertEqual N/A log_json N/A time 2014-08-01T16:01:42Z N/A test_serialise_with_aware_datetime N/A N/A self N/A N/A N/A 
        This tests that aware datetimes are converted to as UTC
         N/A one_hour_west N/A N/A timezone get_fixed_timezone -60 N/A local_time N/A N/A timezone make_aware N/A self WAGTAIL_05_RELEASE_DATETIME one_hour_west N/A log N/A Log time local_time data Wagtail 0.5 released N/A log_json N/A N/A json loads N/A N/A log to_json N/A N/A N/A self assertEqual N/A log_json N/A time 2014-08-01T12:01:42Z N/A test_deserialise_with_utc_datetime N/A N/A self N/A N/A N/A 
        This tests that a datetimes saved as UTC are converted back correctly
         N/A log N/A N/A Log from_json {"data": "Wagtail 0.5 released", "time": "2014-08-01T16:01:42Z", "pk": null} N/A expected_time N/A N/A timezone make_aware N/A self WAGTAIL_05_RELEASE_DATETIME N/A N/A timezone get_default_timezone N/A N/A N/A self assertEqual N/A log time expected_time N/A N/A N/A self assertEqual N/A N/A log time tzinfo N/A expected_time tzinfo N/A test_deserialise_with_local_datetime N/A N/A self N/A N/A N/A 
        This tests that a datetime without timezone information is interpreted as a local time
         N/A log N/A N/A Log from_json {"data": "Wagtail 0.5 released", "time": "2014-08-01T11:01:42", "pk": null} N/A expected_time N/A N/A timezone make_aware N/A self WAGTAIL_05_RELEASE_DATETIME N/A N/A timezone get_default_timezone N/A N/A N/A self assertEqual N/A log time expected_time N/A N/A N/A self assertEqual N/A N/A log time tzinfo N/A expected_time tzinfo N/A test_serialise_with_null_datetime N/A N/A self N/A N/A N/A log N/A Log time None data Someone scanned a QR code N/A log_json N/A N/A json loads N/A N/A log to_json N/A N/A N/A self assertEqual N/A log_json N/A time None N/A test_deserialise_with_null_datetime N/A N/A self N/A N/A N/A log N/A N/A Log from_json {"data": "Someone scanned a QR code", "time": null, "pk": null} N/A N/A N/A self assertEqual N/A log time None N/A test_serialise_saves_file_fields N/A N/A self N/A N/A N/A doc N/A Document title Hello N/A N/A doc file N/A SimpleUploadedFile hello.txt Hello world N/A doc_json N/A N/A doc to_json N/A new_doc N/A N/A Document from_json doc_json N/A N/A N/A self assertEqual N/A N/A N/A new_doc file read Hello world N/A N/A