from django.contrib import admin
from .models import Customer


class CustomerAdmin(admin.ModelAdmin):

    search_fields = ['user__email']


admin.site.register(Customer, CustomerAdmin)

from django.contrib import admin
from .models import Customer


class CustomerAdmin(admin.ModelAdmin):

    search_fields = ['user__email']


admin.site.register(Customer, CustomerAdmin)
