Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd Str BoolOpOr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd Str BoolOpOr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd BinOpAdd Str BoolOpOr NameLoad Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Assign NameStore BinOpAdd Str BoolOpOr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd Str BoolOpOr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import django.contrib.contenttypes.models ContentType django.template Template Context django_comments.forms CommentForm django_comments.models Comment testapp.models Article Author N/A CommentTestCase CommentTemplateTagTests N/A CommentTestCase N/A render N/A N/A self t N/A c N/A N/A ctx N/A Context c N/A out N/A N/A N/A Template t render ctx N/A N/A ctx out N/A testCommentFormTarget N/A N/A self N/A N/A N/A N/A ctx out N/A N/A self render {% load comments %}{% comment_form_target %} N/A N/A N/A self assertEqual out /post/ N/A testGetCommentForm N/A N/A self tag N/A None N/A N/A t N/A {% load comments %} N/A tag {% get_comment_form for testapp.article a.id as form %} N/A N/A ctx out N/A N/A self render t a N/A N/A N/A Article objects get pk 1 N/A N/A N/A self assertEqual out N/A N/A N/A self assertTrue N/A isinstance N/A ctx N/A form CommentForm N/A testGetCommentFormFromLiteral N/A N/A self N/A N/A N/A N/A N/A self testGetCommentForm {% get_comment_form for testapp.article 1 as form %} N/A testGetCommentFormFromObject N/A N/A self N/A N/A N/A N/A N/A self testGetCommentForm {% get_comment_form for a as form %} N/A testWhitespaceInGetCommentFormTag N/A N/A self N/A N/A N/A N/A N/A self testGetCommentForm {% load comment_testtags %}{% get_comment_form for a|noop:'x y' as form %} N/A testRenderCommentForm N/A N/A self tag N/A None N/A N/A t N/A {% load comments %} N/A tag {% render_comment_form for testapp.article a.id %} N/A N/A ctx out N/A N/A self render t a N/A N/A N/A Article objects get pk 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A out strip startswith <form action= N/A N/A N/A self assertTrue N/A N/A N/A N/A out strip endswith </form> N/A testRenderCommentFormFromLiteral N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentForm {% render_comment_form for testapp.article 1 %} N/A testRenderCommentFormFromObject N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentForm {% render_comment_form for a %} N/A testWhitespaceInRenderCommentFormTag N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentForm {% load comment_testtags %}{% render_comment_form for a|noop:'x y' %} N/A testRenderCommentFormFromObjectWithQueryCount N/A N/A self N/A N/A N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A self testRenderCommentFormFromObject N/A verifyGetCommentCount N/A N/A self tag N/A None N/A N/A t N/A N/A {% load comments %} N/A tag {% get_comment_count for testapp.article a.id as cc %} {{ cc }} N/A N/A ctx out N/A N/A self render t a N/A N/A N/A Article objects get pk 1 N/A N/A N/A self assertEqual out 2 N/A testGetCommentCount N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentCount {% get_comment_count for testapp.article a.id as cc %} N/A testGetCommentCountFromLiteral N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentCount {% get_comment_count for testapp.article 1 as cc %} N/A testGetCommentCountFromObject N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentCount {% get_comment_count for a as cc %} N/A testWhitespaceInGetCommentCountTag N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentCount {% load comment_testtags %}{% get_comment_count for a|noop:'x y' as cc %} N/A verifyGetCommentList N/A N/A self tag N/A None N/A N/A N/A c1 c2 c3 c4 N/A N/A N/A N/A Comment objects all N/A 4 N/A t N/A {% load comments %} N/A tag {% get_comment_list for testapp.author a.id as cl %} N/A N/A ctx out N/A N/A self render t a N/A N/A N/A Author objects get pk 1 N/A N/A N/A self assertEqual out N/A N/A N/A self assertEqual N/A list N/A ctx N/A cl N/A c2 N/A testGetCommentList N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentList {% get_comment_list for testapp.author a.id as cl %} N/A testGetCommentListFromLiteral N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentList {% get_comment_list for testapp.author 1 as cl %} N/A testGetCommentListFromObject N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentList {% get_comment_list for a as cl %} N/A testWhitespaceInGetCommentListTag N/A N/A self N/A N/A N/A N/A N/A self createSomeComments N/A N/A N/A self verifyGetCommentList {% load comment_testtags %}{% get_comment_list for a|noop:'x y' as cl %} N/A testGetCommentPermalink N/A N/A self N/A N/A N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A t {% load comments %}{% get_comment_list for testapp.author author.id as cl %} N/A t {% get_comment_permalink cl.0 %} N/A ct N/A N/A N/A ContentType objects get_for_model Author N/A author N/A N/A N/A Author objects get pk 1 N/A N/A ctx out N/A N/A self render t author author N/A N/A N/A self assertEqual out N/A /cr/%s/%s/#c%s N/A N/A ct id N/A author id N/A c2 id N/A testGetCommentPermalinkFormatted N/A N/A self N/A N/A N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A t {% load comments %}{% get_comment_list for testapp.author author.id as cl %} N/A t {% get_comment_permalink cl.0 '#c%(id)s-by-%(user_name)s' %} N/A ct N/A N/A N/A ContentType objects get_for_model Author N/A author N/A N/A N/A Author objects get pk 1 N/A N/A ctx out N/A N/A self render t author author N/A N/A N/A self assertEqual out N/A /cr/%s/%s/#c%s-by-Joe Somebody N/A N/A ct id N/A author id N/A c2 id N/A testWhitespaceInGetCommentPermalinkTag N/A N/A self N/A N/A N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A t {% load comments comment_testtags %}{% get_comment_list for testapp.author author.id as cl %} N/A t {% get_comment_permalink cl.0|noop:'x y' %} N/A ct N/A N/A N/A ContentType objects get_for_model Author N/A author N/A N/A N/A Author objects get pk 1 N/A N/A ctx out N/A N/A self render t author author N/A N/A N/A self assertEqual out N/A /cr/%s/%s/#c%s N/A N/A ct id N/A author id N/A c2 id N/A testRenderCommentList N/A N/A self tag N/A None N/A N/A t N/A {% load comments %} N/A tag {% render_comment_list for testapp.article a.id %} N/A N/A ctx out N/A N/A self render t a N/A N/A N/A Article objects get pk 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A out strip startswith <dl id="comments"> N/A N/A N/A self assertTrue N/A N/A N/A N/A out strip endswith </dl> N/A testRenderCommentListFromLiteral N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentList {% render_comment_list for testapp.article 1 %} N/A testRenderCommentListFromObject N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentList {% render_comment_list for a %} N/A testWhitespaceInRenderCommentListTag N/A N/A self N/A N/A N/A N/A N/A self testRenderCommentList {% load comment_testtags %}{% render_comment_list for a|noop:'x y' %} N/A testNumberQueries N/A N/A self N/A N/A N/A 
        Ensure that the template tags use cached content types to reduce the
        number of DB queries.
        Refs #16042.
         N/A N/A N/A self createSomeComments N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A self testRenderCommentListFromObject N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A self testRenderCommentListFromObject N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A self assertNumQueries 4 N/A N/A N/A N/A self verifyGetCommentList N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A self verifyGetCommentList N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A self testRenderCommentForm N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A self testRenderCommentForm N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A self testGetCommentForm N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A self testGetCommentForm N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A self verifyGetCommentCount N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A self verifyGetCommentCount N/A N/A