Upper letters always in the DB

Hello
I would need to know how I can make sure that from the Django administrator panel, all the information is always saved in uppercase.

that is, if there is any parameter that you can add to the model.

You can override the save_model method on ModelAdmin.

https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model

hi, it worked perfect, thanks

1 Like