forgot .when.

This commit is contained in:
Thomas Steen Rasmussen 2020-06-22 00:52:27 +02:00
parent 4aeb1b566d
commit 36fef3b4ea
1 changed files with 1 additions and 1 deletions

View File

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