Фикс админки

main
through-your-tears 9 months ago
parent 77961345a8
commit 060cb5c55d

@ -11,6 +11,12 @@ for model in models:
admin.site.register(model) admin.site.register(model)
class OrganizationImageInline(admin.TabularInline):
model = OrganizationImage
readonly_fields = ['id']
extra = 1
@admin.register(Organization) @admin.register(Organization)
class OrganizationAdmin(admin.ModelAdmin): class OrganizationAdmin(admin.ModelAdmin):
list_display = ['name', 'category', 'phone', 'website'] list_display = ['name', 'category', 'phone', 'website']

Loading…
Cancel
Save