<s> from django . views import generic <EOL> from django . conf import settings <EOL> from paypal . express import models <EOL> class TransactionListView ( generic . ListView ) : <EOL> model = models . ExpressTransaction <EOL> template_name = '<STR_LIT>' <EOL> context_object_name = '<STR_LIT>' <EOL> class TransactionDetailView ( generic . DetailView ) : <EOL> model = models . ExpressTransaction <EOL> template_name = '<STR_LIT>' <EOL> context_object_name = '<STR_LIT>' <EOL> def get_context_data ( self , ** kwargs ) : <EOL> ctx = super ( TransactionDetailView , self ) . get_context_data ( ** kwargs ) <EOL> ctx [ '<STR_LIT>' ] = getattr ( <EOL> settings , '<STR_LIT>' , False ) <EOL> return ctx </s>
