Django: How to set the minimum length for models.TextField ()?

It seems that only max_length exists for max_length only. But what about min_length for a TextField() , is there a way to provide 100 characters in a TextField ?

+7
source share
1 answer

You would use a custom validator , namely MinLengthValidator

+12
source

All Articles