<s> from django import forms <EOL> from django . contrib import admin <EOL> from sellmo import modules <EOL> from extras . admin . reverse import ReverseModelAdmin <EOL> class AddressForm ( forms . ModelForm ) : <EOL> pass <EOL> class CustomerAdmin ( ReverseModelAdmin ) : <EOL> inline_type = '<STR_LIT>' <EOL> inline_reverse = [ ( '<STR_LIT>' . format ( address ) , { '<STR_LIT>' : AddressForm } ) <EOL> for address in modules . customer . address_types ] <EOL> list_display = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> if modules . customer . auth_enabled : <EOL> raw_id_fields = [ '<STR_LIT:user>' ] <EOL> class CustomerGroupAdmin ( admin . ModelAdmin ) : <EOL> list_display = [ '<STR_LIT:name>' ] <EOL> admin . site . register ( modules . customer . Customer , CustomerAdmin ) <EOL> admin . site . register ( modules . customer . CustomerGroup , CustomerGroupAdmin ) </s>
