<s> from django . contrib import admin <EOL> from django . contrib . auth . models import Group <EOL> from django . contrib . auth . admin import UserAdmin <EOL> from django . contrib . auth . forms import ReadOnlyPasswordHashField <EOL> from . models import MyUser , UserProfile <EOL> from . forms import UserChangeForm , UserCreationForm <EOL> class MyUserAdmin ( UserAdmin ) : <EOL> form = UserChangeForm <EOL> add_form = UserCreationForm <EOL> list_display = ( '<STR_LIT:username>' , '<STR_LIT:email>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' , ) <EOL> fieldsets = ( <EOL> ( None , { '<STR_LIT>' : ( '<STR_LIT:email>' , '<STR_LIT:password>' ) } ) , <EOL> ( '<STR_LIT>' , { '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' ) } ) , <EOL> ( '<STR_LIT>' , { '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' ) } ) , <EOL> ) <EOL> add_fieldsets = ( <EOL> ( None , { <EOL> '<STR_LIT>' : ( '<STR_LIT>' , ) , <EOL> '<STR_LIT>' : ( '<STR_LIT:username>' , '<STR_LIT:email>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) } <EOL> ) , <EOL> ) <EOL> search_fields = ( '<STR_LIT:email>' , '<STR_LIT:username>' , '<STR_LIT>' , '<STR_LIT>' , ) <EOL> ordering = ( '<STR_LIT:username>' , ) <EOL> filter_horizontal = ( ) <EOL> admin . site . register ( MyUser , MyUserAdmin ) <EOL> admin . site . register ( UserProfile ) <EOL> admin . site . unregister ( Group ) </s>
