<s> from django . db import models <EOL> from payment . config import credit_choices , labelled_gateway_choices <EOL> class CreditChoiceCharField ( models . CharField ) : <EOL> def __init__ ( self , choices = "<STR_LIT>" , * args , ** kwargs ) : <EOL> if choices == "<STR_LIT>" : <EOL> kwargs [ '<STR_LIT>' ] = credit_choices ( ) <EOL> super ( CreditChoiceCharField , self ) . __init__ ( * args , ** kwargs ) <EOL> class PaymentChoiceCharField ( models . CharField ) : <EOL> def __init__ ( self , choices = "<STR_LIT>" , * args , ** kwargs ) : <EOL> if choices == "<STR_LIT>" : <EOL> kwargs [ '<STR_LIT>' ] = labelled_gateway_choices ( ) <EOL> super ( PaymentChoiceCharField , self ) . __init__ ( * args , ** kwargs ) </s>
