<s> from django . contrib import admin <EOL> from django . contrib . auth . admin import UserAdmin <EOL> from django . contrib . auth . forms import UserCreationForm , UserChangeForm <EOL> from django . contrib . auth . models import User <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from transifex . txcommon . fields import UnicodeRegexField <EOL> help_text = _ ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> error_message = _ ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> class UserCreationForm ( UserCreationForm ) : <EOL> username = UnicodeRegexField ( label = _ ( "<STR_LIT>" ) , max_length = <NUM_LIT:30> , <EOL> regex = u'<STR_LIT>' , help_text = help_text , error_message = error_message ) <EOL> class UserChangeForm ( UserChangeForm ) : <EOL> username = UnicodeRegexField ( label = _ ( "<STR_LIT>" ) , max_length = <NUM_LIT:30> , <EOL> regex = u'<STR_LIT>' , help_text = help_text , error_message = error_message ) <EOL> class UserProfileAdmin ( UserAdmin ) : <EOL> list_display = ( '<STR_LIT:username>' , '<STR_LIT:email>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) <EOL> form = UserChangeForm <EOL> add_form = UserCreationForm <EOL> admin . site . unregister ( User ) <EOL> admin . site . register ( User , UserProfileAdmin ) </s>
