@@ -124,8 +124,8 @@ def __has_valid_pricing(cls, reservation_unit: ReservationUnit) -> bool:
124124 if active_price is None :
125125 return False
126126
127- # If USE_MOCK_VERKKOKAUPPA_API is True there is no need to check for payment products,
128- if settings .USE_MOCK_VERKKOKAUPPA_API :
127+ # If MOCK_VERKKOKAUPPA_API_ENABLED is True there is no need to check for payment products,
128+ if settings .MOCK_VERKKOKAUPPA_API_ENABLED :
129129 return True
130130
131131 # Pricing is FREE
@@ -137,9 +137,9 @@ def __has_valid_pricing(cls, reservation_unit: ReservationUnit) -> bool:
137137
138138 @classmethod
139139 def __has_valid_pricing_query (cls ) -> Q :
140- # If USE_MOCK_VERKKOKAUPPA_API is True there is no need to check for payment products,
140+ # If MOCK_VERKKOKAUPPA_API_ENABLED is True there is no need to check for payment products,
141141 # as the products are created when a reservation is made.
142- if settings .USE_MOCK_VERKKOKAUPPA_API :
142+ if settings .MOCK_VERKKOKAUPPA_API_ENABLED :
143143 return Q (active_pricing_type__isnull = False )
144144
145145 return (
@@ -314,7 +314,7 @@ def __is_reservation_closed(cls, reservation_unit: ReservationUnit) -> bool:
314314 or (
315315 active_price .pricing_type == PricingType .PAID
316316 and reservation_unit .payment_product is None
317- and not settings .USE_MOCK_VERKKOKAUPPA_API # Don't show as closed if using Mock Verkkokauppa API
317+ and not settings .MOCK_VERKKOKAUPPA_API_ENABLED # Don't show as closed if using Mock Verkkokauppa API
318318 )
319319 )
320320
@@ -323,7 +323,7 @@ def __get_is_reservation_closed_query(cls) -> QueryState:
323323 now = local_datetime ()
324324
325325 payment_product_query = Q (active_pricing_type = PricingType .PAID ) & Q (payment_product__isnull = True )
326- if settings .USE_MOCK_VERKKOKAUPPA_API :
326+ if settings .MOCK_VERKKOKAUPPA_API_ENABLED :
327327 payment_product_query = Q ()
328328
329329 return QueryState (
0 commit comments