<s> from __future__ import unicode_literals <EOL> from django . conf import settings <EOL> from django . contrib import admin <EOL> from django_comments . admin import CommentsAdmin <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from mezzanine . generic . models import ThreadedComment <EOL> __all__ = ( '<STR_LIT>' , ) <EOL> class ThreadedCommentAdmin ( CommentsAdmin ) : <EOL> """<STR_LIT>""" <EOL> list_display = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_display_links = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = [ f for f in CommentsAdmin . list_filter if f != "<STR_LIT>" ] <EOL> fieldsets = ( <EOL> ( _ ( "<STR_LIT>" ) , { "<STR_LIT>" : ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) } ) , <EOL> ( None , { "<STR_LIT>" : ( "<STR_LIT>" , ( "<STR_LIT>" , "<STR_LIT>" ) ) } ) , <EOL> ) <EOL> def get_actions ( self , request ) : <EOL> actions = super ( CommentsAdmin , self ) . get_actions ( request ) <EOL> actions . pop ( "<STR_LIT>" ) <EOL> actions . pop ( "<STR_LIT>" ) <EOL> return actions <EOL> def has_add_permission ( self , request ) : <EOL> return False <EOL> generic_comments = getattr ( settings , "<STR_LIT>" , "<STR_LIT>" ) == "<STR_LIT>" <EOL> using_disqus = bool ( getattr ( settings , "<STR_LIT>" , False ) ) <EOL> if generic_comments and not using_disqus : <EOL> admin . site . register ( ThreadedComment , ThreadedCommentAdmin ) </s>
