admin.py 196 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
from django.contrib import admin
from sshkey.models import UserKey

class UserKeyAdmin(admin.ModelAdmin):
  search_fields = [
    'user__username',
  ]

admin.site.register(UserKey, UserKeyAdmin)