3 ms·
Blank is purely for validation and has nothing to do with the database constraints. If you want to prevent empty input just remove 'blank=True', surely? https:
by whubr 14y ago
Blank is purely for validation and has nothing to do with the database constraints. If you want to prevent empty input just remove 'blank=True', surely?
https://docs.djangoproject.com/en/dev/ref/models/fields/#blank https://docs.djangoproject.com/en/dev/ref/models/fields/#bla...
- cma 14y agoYep, I assumed that wasn't the case based on the blog post's goal of avoiding changing the schema (I thought blank=True must be adding a CHECK (column_name <> '') constraint or something).