<s> from django . utils . translation import ugettext_lazy as _ <EOL> from django . core . urlresolvers import reverse <EOL> from admin_tools . dashboard import Dashboard , AppIndexDashboard <EOL> from admin_tools . dashboard import modules <EOL> class CustomIndexDashboard ( Dashboard ) : <EOL> """<STR_LIT>""" <EOL> class Media : <EOL> css = { <EOL> '<STR_LIT:all>' : ( '<STR_LIT>' , ) , <EOL> } <EOL> js = ( '<STR_LIT>' , ) <EOL> def __init__ ( self , ** kwargs ) : <EOL> Dashboard . __init__ ( self , ** kwargs ) <EOL> self . children . append ( modules . LinkList ( <EOL> _ ( '<STR_LIT>' ) , <EOL> layout = '<STR_LIT>' , <EOL> draggable = False , <EOL> deletable = False , <EOL> collapsible = False , <EOL> children = [ <EOL> [ _ ( '<STR_LIT>' ) , '<STR_LIT:/>' ] , <EOL> [ _ ( '<STR_LIT>' ) , reverse ( '<STR_LIT>' ) ] , <EOL> [ _ ( '<STR_LIT>' ) , reverse ( '<STR_LIT>' ) ] , <EOL> ] <EOL> ) ) <EOL> self . children . append ( modules . AppList ( <EOL> _ ( '<STR_LIT>' ) , <EOL> exclude = [ '<STR_LIT>' ] , <EOL> ) ) <EOL> self . children . append ( modules . AppList ( <EOL> _ ( '<STR_LIT>' ) , <EOL> models = ( '<STR_LIT>' , ) , <EOL> ) ) <EOL> self . children . append ( modules . ModelList ( <EOL> '<STR_LIT>' , <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> ) ) <EOL> self . children . append ( <EOL> modules . RecentActions ( _ ( '<STR_LIT>' ) , <NUM_LIT:5> ) <EOL> ) <EOL> self . children . append ( modules . LinkList ( <EOL> _ ( '<STR_LIT>' ) , <EOL> children = [ <EOL> { <EOL> '<STR_LIT:title>' : _ ( '<STR_LIT>' ) , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> } , <EOL> { <EOL> '<STR_LIT:title>' : _ ( '<STR_LIT>' ) , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> } , <EOL> { <EOL> '<STR_LIT:title>' : _ ( '<STR_LIT>' ) , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> } , <EOL> ] <EOL> ) ) <EOL> self . children . append ( modules . Group ( <EOL> title = '<STR_LIT>' , <EOL> children = [ <EOL> modules . ModelList ( <EOL> '<STR_LIT>' , <EOL> [ '<STR_LIT>' ] <EOL> ) , <EOL> modules . ModelList ( <EOL> '<STR_LIT>' , <EOL> [ '<STR_LIT>' ] <EOL> ) , <EOL> ] <EOL> ) ) <EOL> def init_with_context ( self , context ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class CustomAppIndexDashboard ( AppIndexDashboard ) : <EOL> """<STR_LIT>""" <EOL> title = '<STR_LIT>' <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> AppIndexDashboard . __init__ ( self , * args , ** kwargs ) <EOL> self . children += [ <EOL> modules . ModelList ( self . app_title , self . models ) , <EOL> modules . RecentActions ( include_list = self . get_app_content_types ( ) ) , <EOL> ] <EOL> def init_with_context ( self , context ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
