<s> from django . contrib import admin <EOL> from django . contrib . auth . admin import UserAdmin <EOL> from django . utils . translation import ugettext as _ <EOL> from guardian . admin import GuardedModelAdmin <EOL> from userena . models import UserenaSignup <EOL> from userena . utils import get_profile_model , get_user_model <EOL> class UserenaSignupInline ( admin . StackedInline ) : <EOL> model = UserenaSignup <EOL> max_num = <NUM_LIT:1> <EOL> class UserenaAdmin ( UserAdmin , GuardedModelAdmin ) : <EOL> inlines = [ UserenaSignupInline , ] <EOL> list_display = ( '<STR_LIT:username>' , '<STR_LIT:email>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . unregister ( get_user_model ( ) ) <EOL> admin . site . register ( get_user_model ( ) , UserenaAdmin ) <EOL> admin . site . register ( get_profile_model ( ) ) </s>
