<s> from django . contrib import admin <EOL> from . models import Package <EOL> class PackageAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( <EOL> '<STR_LIT>' , '<STR_LIT:version>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , ) <EOL> list_filter = ( '<STR_LIT:version>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) <EOL> search_fields = ( '<STR_LIT:id>' , '<STR_LIT>' , ) <EOL> def get_display_size ( self , obj ) : <EOL> return "<STR_LIT>" % ( obj . size / <NUM_LIT> / <NUM_LIT> ) <EOL> get_display_size . short_description = '<STR_LIT>' <EOL> admin . site . register ( Package , PackageAdmin ) </s>
