From 5a0c23abaf899f2006dcee2501851fc041e222a7 Mon Sep 17 00:00:00 2001 From: Martin Castro Laminrs Date: Sun, 31 May 2026 12:28:54 +0200 Subject: [PATCH] feat(spa): render raw_id_fields and radio_fields hints (#626) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wire contract already declared `WidgetHint = 'radio' | 'raw_id' | 'password'`, but only `'password'` had a render path; the other two were silently no-ops — a ModelAdmin declaring `raw_id_fields = ('owner',)` got the autocomplete picker anyway (the very thing the consumer was OPTING OUT of), and `radio_fields = {"status": admin.HORIZONTAL}` rendered as a ` onChange(e.target.value === '' ? null : e.target.value)} + className={base} + /> + {target && ( + + Lookup ↗ + + )} + + ); + } else if (field.widget === 'radio' && field.type === 'choice' && field.choices) { + // radio_fields (#626 / #251). The consumer explicitly chose inline + // radio buttons over the default ` onChange(c.value)} + className="h-4 w-4 text-gray-700 focus:ring-gray-500" + /> + {c.label} + + ); + })} + + ); } else if (field.type === 'boolean') { control = ( onChange(e.target.checked)} />