from django.contrib import admin
from unfold.admin import ModelAdmin  # noqa

from apps.geology.models import Photo


@admin.register(Photo)
class PhotoAdmin(ModelAdmin):
    list_display = ("name", "description", "type", "size", "image", "created_at")
    search_fields = ("name", "description", "type", "size", "image")
    list_filter = ("type",)
    exclude = ("created_at", "updated_at", "type", "size", "name")
