From af6167f9d47182cc332ba4f4bdc65cc7ed890726 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 9 Oct 2017 22:32:36 -0400 Subject: Start the ugly process of cleaning up the views. Added a datepicker to the load date form. Added the 'load_number' field to the LoadCreate view --- app/dispatch/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/dispatch/models.py') diff --git a/app/dispatch/models.py b/app/dispatch/models.py index 440804e..dfb5273 100644 --- a/app/dispatch/models.py +++ b/app/dispatch/models.py @@ -20,7 +20,7 @@ class Load(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL) company = models.ForeignKey(Company) description = models.CharField(max_length=256) - amount = models.DecimalField(max_digits=10,decimal_places=2) + amount = models.DecimalField(max_digits=10,decimal_places=2, default="0") def __str__(self): return "{c}, {d} ( {a} )".format(c=self.company, d=self.description, a=self.amount) -- cgit v1.2.3