diff options
author | luxagraf <sng@luxagraf.net> | 2018-09-29 10:42:22 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-09-29 10:42:22 -0500 |
commit | 170ce4cc9b77b8db976e823170de87c8c94e1910 (patch) | |
tree | 7a9baa2532bbe003b504794884047939766c3694 /app | |
parent | a05269998fc1100e7b969c9516fcb2d80d4a7afd (diff) |
fixed campsite price
Diffstat (limited to 'app')
-rw-r--r-- | app/locations/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/locations/models.py b/app/locations/models.py index 73fd937..3ec11b5 100644 --- a/app/locations/models.py +++ b/app/locations/models.py @@ -257,6 +257,7 @@ class Campsite(models.Model): '''Get the price and total price for display in admin ''' if not self.campsite_price: price = 0 + total = 0 else: price = self.campsite_price total = self.nights_stayed * price |