<s> from django . contrib import admin <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from . import models <EOL> class ProductPriceInline ( admin . TabularInline ) : <EOL> model = models . ProductPrice <EOL> extra = <NUM_LIT:0> <EOL> class ProductAdmin ( admin . ModelAdmin ) : <EOL> inlines = [ ProductPriceInline ] <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT:name>' , '<STR_LIT>' ) <EOL> list_display_links = ( '<STR_LIT:name>' , ) <EOL> list_filter = ( '<STR_LIT>' , ) <EOL> prepopulated_fields = { '<STR_LIT>' : ( '<STR_LIT:name>' , ) } <EOL> search_fields = ( '<STR_LIT:name>' , '<STR_LIT:description>' ) <EOL> admin . site . register ( models . Product , ProductAdmin ) </s>
