from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

from main import models


class Admin(UserAdmin):
    list_display = ("id", "username", "email", "date_joined", "last_login")


admin.site.register(models.User, Admin)


class DocumentAdmin(admin.ModelAdmin):
    list_display = ("id", "title")


admin.site.register(models.Document, DocumentAdmin)

[((11, 0, 11, 39), 'django.contrib.admin.site.register', 'admin.site.register', ({(11, 20, 11, 31): 'models.User', (11, 33, 11, 38): 'Admin'}, {}), '(models.User, Admin)', False, 'from django.contrib import admin\n'), ((18, 0, 18, 51), 'django.contrib.admin.site.register', 'admin.site.register', ({(18, 20, 18, 35): 'models.Document', (18, 37, 18, 50): 'DocumentAdmin'}, {}), '(models.Document, DocumentAdmin)', False, 'from django.contrib import admin\n')]