You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 年之前
123456789101112131415
  1. from django.contrib import admin
  2. from django.contrib.auth.models import Group, User
  3. from .models import UserDeviceInformation
  4. # Register your models here.
  5. class UserDeviceInformationAdmin(admin.ModelAdmin):
  6. list_display = ('device', 'browser', 'date', 'session_id')
  7. list_display_links = None
  8. admin.site.register(UserDeviceInformation, UserDeviceInformationAdmin)
  9. admin.site.unregister(Group)
  10. admin.site.unregister(User)