<s> """<STR_LIT>""" <EOL> from django . contrib import admin <EOL> from evennia . comms . models import ChannelDB <EOL> from evennia . typeclasses . admin import AttributeInline , TagInline <EOL> class ChannelAttributeInline ( AttributeInline ) : <EOL> """<STR_LIT>""" <EOL> model = ChannelDB . db_attributes . through <EOL> class ChannelTagInline ( TagInline ) : <EOL> """<STR_LIT>""" <EOL> model = ChannelDB . db_tags . through <EOL> class MsgAdmin ( admin . ModelAdmin ) : <EOL> """<STR_LIT>""" <EOL> list_display = ( '<STR_LIT:id>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_display_links = ( "<STR_LIT:id>" , ) <EOL> ordering = [ "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> search_fields = [ '<STR_LIT:id>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> save_as = True <EOL> save_on_top = True <EOL> list_select_related = True <EOL> class ChannelAdmin ( admin . ModelAdmin ) : <EOL> """<STR_LIT>""" <EOL> inlines = [ ChannelTagInline , ChannelAttributeInline ] <EOL> list_display = ( '<STR_LIT:id>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" ) <EOL> list_display_links = ( "<STR_LIT:id>" , '<STR_LIT>' ) <EOL> ordering = [ "<STR_LIT>" ] <EOL> search_fields = [ '<STR_LIT:id>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> save_as = True <EOL> save_on_top = True <EOL> list_select_related = True <EOL> fieldsets = ( <EOL> ( None , { '<STR_LIT>' : ( ( '<STR_LIT>' , ) , '<STR_LIT>' , '<STR_LIT>' ) } ) , <EOL> ) <EOL> def subscriptions ( self , obj ) : <EOL> """<STR_LIT>""" <EOL> return "<STR_LIT:U+002CU+0020>" . join ( [ str ( sub ) for sub in obj . db_subscriptions . all ( ) ] ) <EOL> admin . site . register ( ChannelDB , ChannelAdmin ) </s>
