text: from __future__ import unicode_literals
  
  from django.contrib import admin
  
  from .models import AccessEntry
  
  
  class AccessEntryAdmin(admin.ModelAdmin):
      model = AccessEntry
      list_display = ('pk', 'holder_object', 'permission', 'content_object')
      list_display_links = ('pk',)
      related_lookup_fields = {
          'generic': [['holder_type', 'holder_id'], ['content_type', 'object_id']],
      }
  
  admin.site.register(AccessEntry, AccessEntryAdmin)
  