forgot .when.

This commit is contained in:
Thomas Steen Rasmussen 2020-06-22 00:52:27 +02:00
parent 4aeb1b566d
commit 36fef3b4ea

View file

@ -41,7 +41,7 @@ class Command(BaseCommand):
when__adjacent_to=instance.when, when__adjacent_to=instance.when,
available=True, available=True,
) )
if sa.when.lower == instance.upper: if sa.when.lower == instance.when.upper:
# this availability begins when the instance ends # this availability begins when the instance ends
sa.when = (instance.when.lower, sa.when.upper) sa.when = (instance.when.lower, sa.when.upper)
else: else: