# coding: utf-8

from django.contrib import admin

from .models import UserAccount


@admin.register(UserAccount)
class UserAccountAdmin(admin.ModelAdmin):
    list_display = (u'id', 'user')
    raw_id_fields = ('user',)

@@ -42,16 +42,72 @@
 rt admin
+%0Afrom django.utils.translation import ugettext_lazy as _
 %0A%0Afrom .
@@ -209,69 +209,944 @@
 n):%0A
-    list_display = (u'id', 'user')%0A    raw_id_fields = ('user',
+%0A    def get_user_first_name(self, obj):%0A        return obj.user.first_name%0A%0A    get_user_first_name.short_description = _(u'first name')%0A    get_user_first_name.admin_order_field = 'user__first_name'%0A%0A%0A    def get_user_last_name(self, obj):%0A        return obj.user.last_name%0A%0A    get_user_last_name.short_description = _(u'first name')%0A    get_user_last_name.admin_order_field = 'user__last_name'%0A%0A    def get_user_email(self, obj):%0A        return obj.user.email%0A%0A    get_user_email.short_description = _(u'email')%0A    get_user_email.admin_order_field = 'user__email'%0A%0A    list_display = (%0A        'user',%0A        'get_user_email',%0A        'get_user_first_name',%0A        'get_user_last_name'%0A    )%0A    raw_id_fields = ('user',)%0A    search_fields = (%0A        'user__username',%0A        'user__email',%0A        'user__last_name',%0A        'user__first_name'%0A    )%0A%0A    list_filter = (%0A        'user__is_active',%0A        'user__is_staff',%0A    
 )%0A

Make account admin change list more user friendly