From 170ce4cc9b77b8db976e823170de87c8c94e1910 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 29 Sep 2018 10:42:22 -0500 Subject: fixed campsite price --- app/locations/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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 -- cgit v1.2.3-70-g09d2