Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Num Num Num Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Assign AttributeStore NameLoad attr BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad BinOpSub NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad BinOpSub NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr Num keyword Num orelse Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Num Num Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call NameLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num NameLoad decorator_list decorator_list
N/A django.test TestCase datetime datetime date datetime timedelta regressiontests.views.models Article Author DateArticle ObjectDetailTest N/A TestCase N/A N/A fixtures N/A testdata.json setUp N/A N/A self N/A N/A N/A current_article N/A N/A N/A Article objects get title Current Article N/A N/A current_article date_created N/A N/A datetime now N/A N/A N/A current_article save N/A test_finds_past N/A N/A self N/A N/A N/A date_based.object_detail can view a page in the past N/A response N/A N/A N/A self client get /views/date_based/object_detail/2001/01/01/old_article/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A response context N/A object title Old Article N/A test_object_detail_finds_today N/A N/A self N/A N/A N/A date_based.object_detail can view a page from today N/A today_url N/A N/A N/A N/A datetime now strftime %Y/%m/%d N/A response N/A N/A N/A self client get N/A /views/date_based/object_detail/%s/current_article/ today_url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A response context N/A object title Current Article N/A test_object_detail_ignores_future N/A N/A self N/A N/A N/A date_based.object_detail can view a page from the future, but only if allowed. N/A response N/A N/A N/A self client get /views/date_based/object_detail/3000/01/01/future_article/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A test_object_detail_allowed_future_if_enabled N/A N/A self N/A N/A N/A date_based.object_detail can view a page from the future if explicitly allowed. N/A response N/A N/A N/A self client get /views/date_based/object_detail/3000/01/01/future_article/allow_future/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A response context N/A object title Future Article N/A N/A MonthArchiveTest N/A TestCase N/A test_archive_month_includes_only_month N/A N/A self N/A N/A N/A Regression for #3031: Archives around Feburary include only one month N/A author N/A Author name John Smith N/A N/A N/A author save N/A first_second_of_feb N/A datetime 2004 2 1 0 0 1 N/A first_second_of_mar N/A datetime 2004 3 1 0 0 1 N/A two_seconds N/A timedelta 0 2 0 N/A article N/A Article title example author author N/A N/A article date_created first_second_of_feb N/A N/A N/A article save N/A response N/A N/A N/A self client get /views/date_based/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response context N/A next_month N/A date 2004 3 1 N/A N/A N/A self assertEqual N/A N/A response context N/A previous_month N/A date 2004 1 1 N/A N/A article date_created N/A first_second_of_feb two_seconds N/A N/A N/A article save N/A response N/A N/A N/A self client get /views/date_based/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A N/A article date_created N/A first_second_of_mar two_seconds N/A N/A N/A article save N/A response N/A N/A N/A self client get /views/date_based/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response context N/A next_month N/A date 2004 3 1 N/A N/A N/A self assertEqual N/A N/A response context N/A previous_month N/A date 2004 1 1 N/A N/A article date_created first_second_of_mar N/A N/A N/A article save N/A response N/A N/A N/A self client get /views/date_based/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A article2 N/A DateArticle title example author author N/A N/A article2 date_created N/A N/A first_second_of_feb date N/A N/A N/A article2 save N/A response N/A N/A N/A self client get /views/date_based/datefield/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response context N/A next_month N/A date 2004 3 1 N/A N/A N/A self assertEqual N/A N/A response context N/A previous_month N/A date 2004 1 1 N/A N/A article2 date_created N/A N/A N/A first_second_of_feb two_seconds date N/A N/A N/A article2 save N/A response N/A N/A N/A self client get /views/date_based/datefield/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A N/A article2 date_created N/A N/A N/A first_second_of_mar two_seconds date N/A N/A N/A article2 save N/A response N/A N/A N/A self client get /views/date_based/datefield/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response context N/A next_month N/A date 2004 3 1 N/A N/A N/A self assertEqual N/A N/A response context N/A previous_month N/A date 2004 1 1 N/A N/A article2 date_created N/A N/A first_second_of_mar date N/A N/A N/A article2 save N/A response N/A N/A N/A self client get /views/date_based/datefield/archive_month/2004/02/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A now N/A N/A datetime now N/A prev_month N/A N/A N/A N/A now date replace day 1 N/A N/A N/A prev_month month 1 N/A N/A prev_month N/A N/A prev_month replace year N/A N/A prev_month year 1 month 12 N/A N/A prev_month N/A N/A prev_month replace month N/A N/A prev_month month 1 N/A N/A article2 date_created now N/A N/A N/A article2 save N/A response N/A N/A N/A self client get N/A /views/date_based/datefield/archive_month/%s/ N/A N/A now strftime %Y/%m N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response context N/A next_month None N/A N/A N/A self assertEqual N/A N/A response context N/A previous_month prev_month N/A test_archive_month_date_list N/A N/A self N/A N/A N/A author N/A Author name John Smith N/A N/A N/A author save N/A date1 N/A datetime 2010 1 1 0 0 0 N/A date2 N/A datetime 2010 1 2 0 0 0 N/A N/A N/A N/A Article objects create title example1 author author date_created date1 N/A N/A N/A N/A Article objects create title example2 author author date_created date2 N/A response N/A N/A N/A self client get /views/date_based/archive_month/2010/1/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A len N/A N/A response context N/A date_list 2 N/A N/A N/A self assertEqual N/A N/A N/A response context N/A date_list N/A 0 date1 N/A N/A N/A N/A Article objects create title example2 author author date_created date2 N/A response N/A N/A N/A self client get /views/date_based/archive_month/2010/1/ N/A N/A N/A self assertEqual N/A len N/A N/A response context N/A date_list 2 N/A N/A DayArchiveTests N/A TestCase N/A test_year_month_day_format N/A N/A self N/A N/A N/A 
        Make sure day views don't get confused with numeric month formats (#7944)
         N/A author N/A N/A N/A Author objects create name John Smith N/A article N/A N/A N/A Article objects create title example author author date_created N/A datetime 2004 1 21 0 0 1 N/A response N/A N/A N/A self client get /views/date_based/archive_day/2004/1/21/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A response context N/A object_list N/A 0 article N/A N/A