diff --git a/app/admin.py b/app/admin.py index 993d323..db33366 100644 --- a/app/admin.py +++ b/app/admin.py @@ -6,14 +6,52 @@ from .models import Room, RoomImage, RoomPanorama @admin.register(Room) class ModelNameAdmin(ModelAdmin): - pass + list_display = [ + 'id', + 'name', + 'area', + 'price', + 'is_visible', + 'is_available', + ] + list_filter = [ + 'id', + 'name', + 'area', + 'price', + 'is_visible', + 'is_available', + ] + search_fields = [ + 'name', + ] @admin.register(RoomImage) class ModelNameAdmin(ModelAdmin): - pass + list_display = [ + 'id', + 'name', + ] + list_filter = [ + 'id', + 'name', + ] + search_fields = [ + 'name', + ] @admin.register(RoomPanorama) class ModelNameAdmin(ModelAdmin): - pass + list_display = [ + 'id', + 'name', + ] + list_filter = [ + 'id', + 'name', + ] + search_fields = [ + 'name', + ]