diff options
Diffstat (limited to 'app/locations')
-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 |