From 060cb5c55ddc8900570de32c0bd8de8c98e52f5c Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sat, 6 Apr 2024 07:10:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B0=D0=B4=D0=BC?= =?UTF-8?q?=D0=B8=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/organizations/admin.py b/src/organizations/admin.py index 0712ba9..32da4d2 100644 --- a/src/organizations/admin.py +++ b/src/organizations/admin.py @@ -11,6 +11,12 @@ for model in models: admin.site.register(model) +class OrganizationImageInline(admin.TabularInline): + model = OrganizationImage + readonly_fields = ['id'] + extra = 1 + + @admin.register(Organization) class OrganizationAdmin(admin.ModelAdmin): list_display = ['name', 'category', 'phone', 'website']