<s> from django . contrib import admin <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . auth . admin import UserAdmin <EOL> from django . db import models <EOL> from systems . models import UserProfile <EOL> class UserProfileInline ( admin . StackedInline ) : <EOL> model = UserProfile <EOL> class InvUserAdmin ( UserAdmin ) : <EOL> filter_horizontal = UserAdmin . filter_horizontal + ( '<STR_LIT>' , ) <EOL> inlines = [ UserProfileInline ] <EOL> admin . site . unregister ( User ) <EOL> admin . site . register ( User , InvUserAdmin ) <EOL> admin . site . register ( UserProfile ) </s>
