Explicitly mark some CharField as non blank

This commit is contained in:
Oliver Walters committed 2019-05-04 17:01:31 +10:00
1 parent 1d9e31c229
commit 4ef1e4fc78
4 files changed
+15 -5

No files matched your search

+4 -1
View File
@@ -87,7 +87,10 @@ class Build(models.Model):
limit_choices_to={'buildable': True},
)
title = models.CharField(max_length=100, help_text='Brief description of the build')
title = models.CharField(
blank=False,
max_length=100,
help_text='Brief description of the build')
quantity = models.PositiveIntegerField(
default=1,