from django.contrib import admin

# Register your models here.
from .forms import BookForm
from .models import Book


class BookAdmin(admin.ModelAdmin):
    list_display = [
        "__str__",
        "slug",
    ]
    readonly_fields = ['slug', 'updated', 'timestamp', 'added_by', "last_edited_by"]

    form = BookForm


admin.site.register(Book, BookAdmin)