VariationField form logic

This commit is contained in:
Raphael Michel
2014-10-17 15:55:07 +02:00
parent 3cabd6f611
commit c311052ffd
5 changed files with 191 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ def availability_handler(sender, **kwargs):
if 'variation' not in v or v['variation'] not in applied_to:
continue
if (restriction.timeframe_from <= now() <= restriction.timeframe_to):
if restriction.timeframe_from <= now() <= restriction.timeframe_to:
# Selling this item is currently possible
available = True
# If multiple time frames are currently active, make sure to