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']