<s> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from sellmo . core . loading import load <EOL> from sellmo . apps . pricing import PriceField <EOL> import polymorphism <EOL> import sellmo . contrib . payment as _payment <EOL> @ load ( action = '<STR_LIT>' ) <EOL> def finalize_model ( ) : <EOL> class Payment ( _payment . models . Payment ) : <EOL> objects = _payment . models . PaymentManager . from_queryset ( <EOL> _payment . models . PaymentQuerySet ) ( ) <EOL> class Meta ( _payment . models . Payment . Meta ) : <EOL> app_label = '<STR_LIT>' <EOL> _payment . models . Payment = Payment <EOL> class PaymentQuerySet ( polymorphism . PolymorphicQuerySet ) : <EOL> pass <EOL> class PaymentManager ( polymorphism . PolymorphicManager ) : <EOL> pass <EOL> class Payment ( polymorphism . PolymorphicModel ) : <EOL> instant = True <EOL> order = polymorphism . PolymorphicOneToOneField ( <EOL> '<STR_LIT>' , <EOL> null = True , <EOL> related_name = '<STR_LIT>' , <EOL> polymorphic_related = True , <EOL> editable = False <EOL> ) <EOL> method_string = models . CharField ( max_length = <NUM_LIT> , editable = False ) <EOL> description = models . CharField ( <EOL> max_length = <NUM_LIT:255> , <EOL> verbose_name = _ ( "<STR_LIT:description>" ) <EOL> ) <EOL> costs = PriceField ( default = <NUM_LIT:0> , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> def resolve_method ( self ) : <EOL> return NotImplemented <EOL> def __unicode__ ( self ) : <EOL> return self . description <EOL> class Meta : <EOL> abstract = True <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> verbose_name_plural = _ ( "<STR_LIT>" ) </s>
