from django.contrib import admin
from .models import *


class UserSearchAdmin(admin.ModelAdmin):
    list_display = ('Search_User', 'Search_value', 'Frequency', 'date_added')
    search_fields = ('Search_User', 'Search_value')

admin.site.register(User_Search, UserSearchAdmin)

class SearchAdmin(admin.ModelAdmin):
    list_display = ('Search_value', 'Frequency', 'date_added')
    search_fields = ('Search_value',)

admin.site.register(Search, SearchAdmin)

class ProductAdmin(admin.ModelAdmin):
    list_display = ('Name', 'Price', 'Search', 'Seller')
    search_fields = ('Name', 'Seller')

admin.site.register(Product, ProductAdmin)