<s> from payment . modules . giftcertificate . models import GiftCertificate , GiftCertificateUsage , GiftCertificateProduct <EOL> from django . contrib import admin <EOL> from django . utils . translation import get_language , ugettext_lazy as _ <EOL> class GiftCertificateUsage_Inline ( admin . StackedInline ) : <EOL> model = GiftCertificateUsage <EOL> extra = <NUM_LIT:1> <EOL> class GiftCertificateOptions ( admin . ModelAdmin ) : <EOL> list_display = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:code>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> list_display_links = ( '<STR_LIT:code>' , ) <EOL> ordering = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> inlines = [ GiftCertificateUsage_Inline ] <EOL> admin . site . register ( GiftCertificate , GiftCertificateOptions ) <EOL> admin . site . register ( GiftCertificateProduct ) </s>
