<s> from django . utils . translation import ugettext_lazy as _ <EOL> from ralph . admin import RalphAdmin , register <EOL> from ralph . admin . m2m import RalphTabularM2MInline <EOL> from ralph . attachments . admin import AttachmentsMixin <EOL> from ralph . lib . transitions . admin import TransitionAdminMixin <EOL> from ralph . tests . models import Bar , Car , Car2 , Foo , Manufacturer , Order <EOL> @ register ( Car ) <EOL> class CarAdmin ( RalphAdmin ) : <EOL> ordering = [ '<STR_LIT:name>' ] <EOL> list_filter = [ '<STR_LIT>' ] <EOL> search_fields = [ '<STR_LIT:name>' , '<STR_LIT>' ] <EOL> @ register ( Bar ) <EOL> class BarAdmin ( RalphAdmin ) : <EOL> list_filter = [ '<STR_LIT:date>' , '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:count>' ] <EOL> class BarsM2MInline ( RalphTabularM2MInline ) : <EOL> model = Bar <EOL> fields = ( '<STR_LIT:name>' , '<STR_LIT:date>' , '<STR_LIT>' , '<STR_LIT:count>' ) <EOL> extra = <NUM_LIT:1> <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> @ register ( Foo ) <EOL> class FooAdmin ( RalphAdmin ) : <EOL> inlines = [ BarsM2MInline ] <EOL> @ register ( Car2 ) <EOL> class Car2Admin ( RalphAdmin ) : <EOL> list_filter = [ '<STR_LIT>' ] <EOL> @ register ( Manufacturer ) <EOL> class ManufacturerAdmin ( RalphAdmin ) : <EOL> ordering = [ '<STR_LIT:name>' , '<STR_LIT>' ] <EOL> @ register ( Order ) <EOL> class OrderAdmin ( AttachmentsMixin , TransitionAdminMixin , RalphAdmin ) : <EOL> change_views = [ ] </s>
