Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.test TestCase django.contrib.sites.models Site django.contrib.redirects.models Redirect MiddlewareTests N/A TestCase N/A test_admin_caching N/A N/A self N/A N/A N/A  Ensure admin is not cached  N/A response N/A N/A N/A self client get /admin/ N/A N/A N/A self assertTrue N/A N/A response has_header Cache-Control N/A N/A N/A self assertEqual N/A response N/A Cache-Control private N/A test_redirects N/A N/A self N/A N/A N/A 
        More of a sanity check just in case some other middleware interferes.
         N/A redirect N/A N/A N/A Redirect objects create old_path /old_path/ new_path http://redirected.example.com site N/A N/A N/A Site objects get_current N/A url N/A redirect old_path N/A response N/A N/A N/A self client get url N/A N/A N/A self assertEqual N/A response status_code 301 N/A N/A N/A self assertEqual N/A response N/A Location N/A redirect new_path N/A N/A