Django: CharField with fixed length, how?
- by Giovanni Di Milia
Hi everybody,
I wold like to have in my model a CharField with fixed length. In other words I want that only a specified length is valid.
I tried to do something like
volumenumber = models.CharField('Volume Number', max_length=4, min_length=4)
but it gives me an error (it seems that I can use both max_length and min_length at the same time).
…