from django.contrib import admin from .models import Userdata class UserdataAdmin(admin.ModelAdmin): list_display = ['id','user_id'] search_fields = ['user_id'] admin.site.register(Userdata, UserdataAdmin)