2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Explicitly mark some CharField as non blank

This commit is contained in:
Oliver Walters
2019-05-04 17:00:33 +10:00
parent 1d9e31c229
commit 4ef1e4fc78
4 changed files with 15 additions and 5 deletions

View File

@ -42,7 +42,7 @@ class Company(models.Model):
It may be a supplier or a customer (or both).
"""
name = models.CharField(max_length=100, unique=True,
name = models.CharField(max_length=100, blank=False, unique=True,
help_text='Company name')
description = models.CharField(max_length=500)