<s> from __future__ import unicode_literals <EOL> from django . contrib import admin <EOL> from django . contrib . contenttypes import generic <EOL> from codebase . models import SingleCodeReference , CodeSnippet <EOL> from channel . models import SupportChannel , SupportThread , Message <EOL> class SingleCodeReferenceInline ( generic . GenericTabularInline ) : <EOL> fields = ( '<STR_LIT:content>' , '<STR_LIT>' , '<STR_LIT:index>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> readonly_fields = ( '<STR_LIT>' , ) <EOL> raw_id_fields = ( '<STR_LIT>' , ) <EOL> model = SingleCodeReference <EOL> ct_field = '<STR_LIT>' <EOL> ct_fk_field = '<STR_LIT>' <EOL> extra = <NUM_LIT:0> <EOL> class CodeSnippetInline ( generic . GenericTabularInline ) : <EOL> fields = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> model = CodeSnippet <EOL> ct_field = '<STR_LIT>' <EOL> ct_fk_field = '<STR_LIT>' <EOL> extra = <NUM_LIT:0> <EOL> ordering = ( '<STR_LIT:index>' , ) <EOL> class MessageAdmin ( admin . ModelAdmin ) : <EOL> ordering = ( '<STR_LIT:title>' , ) <EOL> list_filter = ( '<STR_LIT>' , ) <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT:index>' , '<STR_LIT>' , '<STR_LIT:title>' , '<STR_LIT>' ) <EOL> list_display_links = ( '<STR_LIT>' , '<STR_LIT:title>' , ) <EOL> search_fields = [ '<STR_LIT:title>' , '<STR_LIT:id>' , '<STR_LIT:url>' ] <EOL> inlines = [ SingleCodeReferenceInline , CodeSnippetInline ] <EOL> class MessageInline ( admin . StackedInline ) : <EOL> model = Message <EOL> extra = <NUM_LIT:0> <EOL> ordering = ( '<STR_LIT:index>' , ) <EOL> class SThreadAdmin ( admin . ModelAdmin ) : <EOL> inlines = [ MessageInline ] <EOL> ordering = ( '<STR_LIT:title>' , ) <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:title>' ) <EOL> list_filter = ( '<STR_LIT>' , ) <EOL> list_display_links = ( '<STR_LIT:title>' , ) <EOL> search_fields = [ '<STR_LIT:title>' ] <EOL> class SThreadInline ( admin . StackedInline ) : <EOL> model = SupportThread <EOL> extra = <NUM_LIT:0> <EOL> ordering = ( '<STR_LIT:title>' , ) <EOL> class ChannelAdmin ( admin . ModelAdmin ) : <EOL> inlines = [ SThreadInline ] <EOL> admin . site . register ( SupportChannel , ChannelAdmin ) <EOL> admin . site . register ( SupportThread , SThreadAdmin ) <EOL> admin . site . register ( Message , MessageAdmin ) </s>
