diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-09 22:32:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-09 22:32:36 -0400 |
| commit | af6167f9d47182cc332ba4f4bdc65cc7ed890726 (patch) | |
| tree | 0291084425fdc12daa8302998365f2ee6d5e5d27 /app/dispatch/models.py | |
| parent | 5f137f66f19e60fb6f4b44a2d85076223e5837c5 (diff) | |
| download | dispatch-tracker-af6167f9d47182cc332ba4f4bdc65cc7ed890726.tar.gz dispatch-tracker-af6167f9d47182cc332ba4f4bdc65cc7ed890726.tar.xz | |
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
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
