Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str NameLoad NameLoad Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list decorator_list
N/A __future__ absolute_import unicode_literals django.contrib.auth.models User Permission django.contrib.comments signals django.contrib.comments.models Comment CommentFlag django.contrib.contenttypes.models ContentType django.utils translation N/A CommentTestCase FlagViewTests N/A CommentTestCase N/A testFlagGet N/A N/A self N/A N/A N/A GET the flag view: render a confirmation page. N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get N/A /flag/%d/ pk N/A N/A N/A self assertTemplateUsed response comments/flag.html N/A testFlagPost N/A N/A self N/A N/A N/A POST the flag view: actually flag the view (nice for XHR) N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /flag/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/flagged/?c=%d pk N/A c N/A N/A N/A Comment objects get pk pk N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A c flags filter flag N/A CommentFlag SUGGEST_REMOVAL count 1 N/A c N/A testFlagPostNext N/A N/A self N/A N/A N/A 
        POST the flag view, explicitly providing a next url.
         N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /flag/%d/ pk N/A next /go/here/ N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/go/here/?c=%d pk N/A testFlagPostUnsafeNext N/A N/A self N/A N/A N/A 
        POSTing to the flag view with an unsafe next url will ignore the
        provided url when redirecting.
         N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /flag/%d/ pk N/A next http://elsewhere/bad N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/flagged/?c=%d pk N/A testFlagPostTwice N/A N/A self N/A N/A N/A Users don't get to flag comments more than once. N/A c N/A N/A self testFlagPost N/A N/A N/A N/A self client post N/A /flag/%d/ N/A c pk N/A N/A N/A N/A self client post N/A /flag/%d/ N/A c pk N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A c flags filter flag N/A CommentFlag SUGGEST_REMOVAL count 1 N/A testFlagAnon N/A N/A self N/A N/A N/A GET/POST the flag view while not logged in: redirect to log in. N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A response N/A N/A N/A self client get N/A /flag/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/accounts/login/?next=/flag/%d/ pk N/A response N/A N/A N/A self client post N/A /flag/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/accounts/login/?next=/flag/%d/ pk N/A testFlaggedView N/A N/A self N/A N/A N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A response N/A N/A N/A self client get /flagged/ data N/A c pk N/A N/A N/A self assertTemplateUsed response comments/flagged.html N/A testFlagSignals N/A N/A self N/A N/A N/A Test signals emitted by the comment flag view receive N/A N/A sender N/A kwargs N/A N/A N/A N/A self assertEqual N/A N/A kwargs N/A flag flag N/A CommentFlag SUGGEST_REMOVAL N/A N/A N/A self assertEqual N/A N/A N/A kwargs N/A request user username normaluser N/A N/A N/A received_signals append N/A N/A kwargs get signal N/A N/A received_signals N/A N/A N/A N/A N/A signals comment_was_flagged connect receive N/A N/A N/A self testFlagPost N/A N/A N/A self assertEqual received_signals N/A N/A signals comment_was_flagged N/A N/A N/A N/A signals comment_was_flagged disconnect receive N/A N/A makeModerator N/A N/A username N/A N/A N/A u N/A N/A N/A User objects get username username N/A ct N/A N/A N/A ContentType objects get_for_model Comment N/A p N/A N/A N/A Permission objects get content_type ct codename can_moderate N/A N/A N/A N/A u user_permissions add p N/A DeleteViewTests N/A CommentTestCase N/A testDeletePermissions N/A N/A self N/A N/A N/A The delete view should only be accessible to 'moderators' N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get N/A /delete/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/accounts/login/?next=/delete/%d/ pk N/A N/A makeModerator normaluser N/A response N/A N/A N/A self client get N/A /delete/%d/ pk N/A N/A N/A self assertEqual N/A response status_code 200 N/A testDeletePost N/A N/A self N/A N/A N/A POSTing the delete view should mark the comment as removed N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /delete/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/deleted/?c=%d pk N/A c N/A N/A N/A Comment objects get pk pk N/A N/A N/A self assertTrue N/A c is_removed N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A c flags filter flag N/A CommentFlag MODERATOR_DELETION user__username normaluser count 1 N/A testDeletePostNext N/A N/A self N/A N/A N/A 
        POSTing the delete view will redirect to an explicitly provided a next
        url.
         N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /delete/%d/ pk N/A next /go/here/ N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/go/here/?c=%d pk N/A testDeletePostUnsafeNext N/A N/A self N/A N/A N/A 
        POSTing to the delete view with an unsafe next url will ignore the
        provided url when redirecting.
         N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /delete/%d/ pk N/A next http://elsewhere/bad N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/deleted/?c=%d pk N/A testDeleteSignals N/A N/A self N/A N/A receive N/A N/A sender N/A kwargs N/A N/A N/A N/A received_signals append N/A N/A kwargs get signal N/A N/A received_signals N/A N/A N/A N/A N/A signals comment_was_flagged connect receive N/A N/A N/A self testDeletePost N/A N/A N/A self assertEqual received_signals N/A N/A signals comment_was_flagged N/A N/A N/A N/A signals comment_was_flagged disconnect receive N/A testDeletedView N/A N/A self N/A N/A N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A response N/A N/A N/A self client get /deleted/ data N/A c pk N/A N/A N/A self assertTemplateUsed response comments/deleted.html N/A N/A ApproveViewTests N/A CommentTestCase N/A testApprovePermissions N/A N/A self N/A N/A N/A The approve view should only be accessible to 'moderators' N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get N/A /approve/%d/ pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/accounts/login/?next=/approve/%d/ pk N/A N/A makeModerator normaluser N/A response N/A N/A N/A self client get N/A /approve/%d/ pk N/A N/A N/A self assertEqual N/A response status_code 200 N/A testApprovePost N/A N/A self N/A N/A N/A POSTing the approve view should mark the comment as removed N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A N/A c1 is_public False N/A N/A N/A c1 save N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /approve/%d/ N/A c1 pk N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/approved/?c=%d N/A c1 pk N/A c N/A N/A N/A Comment objects get pk N/A c1 pk N/A N/A N/A self assertTrue N/A c is_public N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A c flags filter flag N/A CommentFlag MODERATOR_APPROVAL user__username normaluser count 1 N/A testApprovePostNext N/A N/A self N/A N/A N/A 
        POSTing the approve view will redirect to an explicitly provided a next
        url.
         N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A N/A c1 is_public False N/A N/A N/A c1 save N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /approve/%d/ N/A c1 pk N/A next /go/here/ N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/go/here/?c=%d N/A c1 pk N/A testApprovePostUnsafeNext N/A N/A self N/A N/A N/A 
        POSTing to the approve view with an unsafe next url will ignore the
        provided url when redirecting.
         N/A N/A c1 c2 c3 c4 N/A N/A self createSomeComments N/A N/A c1 is_public False N/A N/A N/A c1 save N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client post N/A /approve/%d/ N/A c1 pk N/A next http://elsewhere/bad N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/approved/?c=%d N/A c1 pk N/A testApproveSignals N/A N/A self N/A N/A receive N/A N/A sender N/A kwargs N/A N/A N/A N/A received_signals append N/A N/A kwargs get signal N/A N/A received_signals N/A N/A N/A N/A N/A signals comment_was_flagged connect receive N/A N/A N/A self testApprovePost N/A N/A N/A self assertEqual received_signals N/A N/A signals comment_was_flagged N/A N/A N/A N/A signals comment_was_flagged disconnect receive N/A testApprovedView N/A N/A self N/A N/A N/A comments N/A N/A self createSomeComments N/A pk N/A N/A comments N/A 0 pk N/A response N/A N/A N/A self client get /approved/ data N/A c pk N/A N/A N/A self assertTemplateUsed response comments/approved.html N/A N/A AdminActionsTests N/A CommentTestCase N/A N/A urls comment_tests.urls_admin setUp N/A N/A self N/A N/A N/A N/A N/A N/A super AdminActionsTests self setUp N/A u N/A N/A N/A User objects get username normaluser N/A N/A u is_staff True N/A perms N/A N/A N/A Permission objects filter content_type__app_label comments codename__endswith comment N/A perm perms N/A N/A N/A N/A N/A u user_permissions add perm N/A N/A N/A u save N/A testActionsNonModerator N/A N/A self N/A N/A N/A comments N/A N/A self createSomeComments N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get /admin/comments/comment/ N/A N/A N/A self assertNotContains response approve_comments N/A testActionsModerator N/A N/A self N/A N/A N/A comments N/A N/A self createSomeComments N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get /admin/comments/comment/ N/A N/A N/A self assertContains response approve_comments N/A testActionsDisabledDelete N/A N/A self N/A N/A N/A Tests a CommentAdmin where 'delete_selected' has been disabled. N/A comments N/A N/A self createSomeComments N/A N/A N/A N/A self client login username normaluser password normaluser N/A response N/A N/A N/A self client get /admin2/comments/comment/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertNotContains response <option value="delete_selected"> N/A performActionAndCheckMessage N/A N/A self action action_params expected_message N/A N/A N/A response N/A N/A N/A self client post /admin/comments/comment/ data N/A _selected_action action index action_params action 0 follow True N/A N/A N/A self assertContains response expected_message N/A testActionsMessageTranslations 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 one_comment N/A c1 pk N/A many_comments N/A N/A c2 pk N/A c3 pk N/A c4 pk N/A N/A makeModerator normaluser N/A N/A N/A N/A self client login username normaluser password normaluser N/A N/A N/A translation override en N/A N/A N/A N/A self performActionAndCheckMessage approve_comments one_comment 1 comment was successfully approved N/A N/A N/A self performActionAndCheckMessage approve_comments many_comments 3 comments were successfully approved N/A N/A N/A self performActionAndCheckMessage flag_comments one_comment 1 comment was successfully flagged N/A N/A N/A self performActionAndCheckMessage flag_comments many_comments 3 comments were successfully flagged N/A N/A N/A self performActionAndCheckMessage remove_comments one_comment 1 comment was successfully removed N/A N/A N/A self performActionAndCheckMessage remove_comments many_comments 3 comments were successfully removed N/A N/A