#Changing the display value for null globally in admin

1 messages · Page 1 of 1 (latest)

minor widget
#

I have a field in a model that is a nullable boolean field. Currently one of the choices is Unknown for null in admin. I want to change the display value for nulls globally on all form fields.

How do I change this?

fringe cosmos
#

I think you'd need to subclass that widget, set the choices manually in init, and override each field in the forms used by the admins

lament trail
#

I imagine you could monkey patch the model field's class so that is uses the widget you want in formfield