diff options
author | Sean Smith <ssmith@iol.unh.edu> | 2020-07-28 10:03:15 -0400 |
---|---|---|
committer | Sean Smith <ssmith@iol.unh.edu> | 2020-07-28 11:37:13 -0400 |
commit | 6e6ba0ab166accc0416de209043bbcc0bc84ec69 (patch) | |
tree | 82fea742f0a80da8a03d2e8e6d1fc97c0660d28b /src/resource_inventory | |
parent | 0d90af7bcea705c78df92336b31836ef67cd5d10 (diff) |
Allow Null Values in Admin Interface
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Change-Id: I6f3213ea47073ef4427a1f301ac6340e848e0891
Diffstat (limited to 'src/resource_inventory')
-rw-r--r-- | src/resource_inventory/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py index 4a6375d..7a1f259 100644 --- a/src/resource_inventory/models.py +++ b/src/resource_inventory/models.py @@ -122,7 +122,7 @@ class CpuProfile(models.Model): ]) cpus = models.IntegerField() host = models.ForeignKey(ResourceProfile, on_delete=models.CASCADE, related_name='cpuprofile') - cflags = models.TextField(null=True) + cflags = models.TextField(null=True, blank=True) def __str__(self): return str(self.architecture) + " " + str(self.cpus) + "S" + str(self.cores) + " C for " + str(self.host) |