Files
backend/apps/geology/admin/photo.py
A'zamov Samandar 0229a0595c
Some checks failed
Deploy Django Application to Server / deploy (push) Failing after 19s
Telegram Notifications / Telegram Gate (push) Failing after 5s
gealogiuya
2026-02-27 14:56:23 +05:00

13 lines
417 B
Python

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")