old_contents: from django.contrib import admin
  from django.contrib.auth.admin import UserAdmin
  from django.utils.translation import ugettext_lazy as _
  
  from .forms import UserChangeForm, UserCreationForm, MessageAdminForm
  from .models import FruitUser, Message
  from utils import trim_words
  
  
  class FruitUserAdmin(UserAdmin):
      form = UserChangeForm
      add_form = UserCreationForm
  
      fieldsets = (
          (None, {
              'fields': 'username password'.split()
          }),
          (_('Personal info'), {
              'fields': [
                  'first_name', 'last_name', ('email', 'is_email_verified')
              ],
          }),
          (_('Permissions'), {
              'fields': 'is_active is_staff is_superuser groups user_permissions'.split(),
          }),
          (_('Important dates'), {
              'fields': 'last_login date_joined'.split(),
          }),
      )
  
      list_display = 'username email first_name last_name is_staff is_active ' \
                     'is_email_verified date_joined'.split()
  
      list_filter = 'is_staff is_superuser is_active is_email_verified groups'.split()
  
      add_fieldsets = (
          (None, {
              'classes': ['wide'],
              'fields': ['username email password1 password2'.split()]
          }),
      )
  
  
  class MessageAdmin(admin.ModelAdmin):
      model = Message
      form = MessageAdminForm
      list_display = '_text created read system recipient'.split()
      list_filter = 'read system'.split()
      search_fields = 'recipient__username recipient__email'.split()
  
      def _text(self, obj):
          return trim_words(obj.text, 80)
      _text.short_description = _('text')
  
  
  admin.site.register(FruitUser, FruitUserAdmin)
  admin.site.register(Message, MessageAdmin)
  
new_contents: from django.contrib import admin
  from django.contrib.auth.admin import UserAdmin
  from django.utils.translation import ugettext_lazy as _
  
  from .forms import UserChangeForm, UserCreationForm, MessageAdminForm
  from .models import FruitUser, Message
  from utils import trim_words
  
  
  class FruitUserAdmin(UserAdmin):
      form = UserChangeForm
      add_form = UserCreationForm
  
      fieldsets = (
          (None, {
              'fields': 'username password'.split()
          }),
          (_('Personal info'), {
              'fields': [
                  'first_name', 'last_name', ('email', 'is_email_verified'), 'motto', 'avatar',
              ],
          }),
          (_('Permissions'), {
              'fields': 'is_active is_staff is_superuser groups user_permissions'.split(),
          }),
          (_('Important dates'), {
              'fields': 'last_login date_joined'.split(),
          }),
      )
  
      list_display = 'username email first_name last_name is_staff is_active ' \
                     'is_email_verified date_joined'.split()
  
      list_filter = 'is_staff is_superuser is_active is_email_verified groups'.split()
  
      add_fieldsets = (
          (None, {
              'classes': ['wide'],
              'fields': ['username email password1 password2'.split()]
          }),
      )
  
  
  class MessageAdmin(admin.ModelAdmin):
      model = Message
      form = MessageAdminForm
      list_display = '_text created read system recipient'.split()
      list_filter = 'read system'.split()
      search_fields = 'recipient__username recipient__email'.split()
  
      def _text(self, obj):
          return trim_words(obj.text, 80)
      _text.short_description = _('text')
  
  
  admin.site.register(FruitUser, FruitUserAdmin)
  admin.site.register(Message, MessageAdmin)
  
subject: Add missing fields to user admin page