<s> from sellmo . core . registry . inject import mixin_model , inherit_model <EOL> from . import partials <EOL> import sellmo . apps . checkout as _checkout <EOL> import sellmo . apps . purchase as _purchase <EOL> import sellmo . apps . customer as _customer <EOL> from . constants import CUSTOMER_REQUIRED <EOL> if not CUSTOMER_REQUIRED : <EOL> _checkout . models [ '<STR_LIT>' ] . inject ( inherit_model ( <EOL> lambda : _customer . models . Customer <EOL> ) ) <EOL> def Order ( value ) : <EOL> class Order ( value ) : <EOL> objects = _checkout . models . OrderManager . from_queryset ( <EOL> _checkout . models . OrderQuerySet ) ( ) <EOL> class Meta ( value . Meta ) : <EOL> pass <EOL> return Order <EOL> _checkout . models [ '<STR_LIT>' ] . inject ( Order ) <EOL> _purchase . models [ '<STR_LIT>' ] . inject ( mixin_model ( <EOL> lambda : partials . Purchase <EOL> ) ) <EOL> _customer . models [ '<STR_LIT>' ] . inject ( mixin_model ( <EOL> lambda : partials . Address <EOL> ) ) </s>
