Django: Form validation for accepting strings with first letter in CAPS
问题 I have a model form defined in my application, and in one of my form fields, I want the users to enter their inputs, but with the first letter of their inputs in capital. If that's not the case, the application should throw an error and prompt the user to re-enter that particular form entry. Is there an in-built Django form validator for implementing such a restriction? PS: I am aware of the capitalize() method provided by ModelForm which stores the form field in database with first letter