gealogiuya
This commit is contained in:
12
apps/geology/admin/photo.py
Normal file
12
apps/geology/admin/photo.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user