from django.contrib import admin

from booking.models import Booking, Employee


@admin.register(Booking)
class BookingAdmin(admin.ModelAdmin):
    list_display = ('name', 'service', 'date', 'time_slot')
    search_fields = ['name', 'service', 'date']
    ordering = ['-date']


admin.site.register(Employee)

from django.contrib import admin

from booking.models import Booking, Employee


@admin.register(Booking)
class BookingAdmin(admin.ModelAdmin):
    list_display = ('name', 'service', 'date', 'time_slot')
    search_fields = ['name', 'service', 'date']
    ordering = ['-date']


admin.site.register(Employee)
