<s> """<STR_LIT>""" <EOL> from django . contrib import admin <EOL> from omaha . models import Channel , Platform , Application , Version , Action , PartialUpdate , Data <EOL> from omaha . forms import ApplicationAdminForm , VersionAdminForm , ActionAdminForm , DataAdminForm <EOL> from dynamic_preferences . models import GlobalPreferenceModel , UserPreferenceModel <EOL> admin . site . unregister ( GlobalPreferenceModel ) <EOL> admin . site . unregister ( UserPreferenceModel ) <EOL> @ admin . register ( Platform ) <EOL> class PlatformAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , ) <EOL> @ admin . register ( Channel ) <EOL> class ChannelAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , ) <EOL> class DataInline ( admin . StackedInline ) : <EOL> model = Data <EOL> extra = <NUM_LIT:0> <EOL> form = DataAdminForm <EOL> @ admin . register ( Application ) <EOL> class ApplicationAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , '<STR_LIT:id>' , ) <EOL> form = ApplicationAdminForm <EOL> inlines = ( DataInline , ) <EOL> class ActionInline ( admin . StackedInline ) : <EOL> model = Action <EOL> extra = <NUM_LIT:0> <EOL> form = ActionAdminForm <EOL> class PartialUpdateInline ( admin . StackedInline ) : <EOL> model = PartialUpdate <EOL> extra = <NUM_LIT:0> <EOL> @ admin . register ( Version ) <EOL> class VersionAdmin ( admin . ModelAdmin ) : <EOL> inlines = ( ActionInline , PartialUpdateInline , ) <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:version>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_display_links = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:version>' , ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) <EOL> readonly_fields = ( '<STR_LIT>' , ) <EOL> form = VersionAdminForm </s>
