old_contents: from django.contrib import admin
  
  from .models import AccessToken
  
  
  class AccessTokenAdmin(admin.ModelAdmin):
      raw_id_fields = ('user',)
  
  
  admin.site.register(AccessToken, AccessTokenAdmin)
  
new_contents: from django.contrib import admin
  
  from .models import AccessToken
  
  
  class AccessTokenAdmin(admin.ModelAdmin):
      raw_id_fields = ('user',)
      list_filter = ('purpose',)
      search_fields = ('user__email',)
  
  
  admin.site.register(AccessToken, AccessTokenAdmin)
  
subject: Add search, filter to access tokens