Commit migrations and fixed pruning crontab command not setting student status to False. Also fixed Student Status subject field in admin

This commit is contained in:
Keannu Christian Bernasol 2023-10-13 12:34:20 +08:00
parent 87d1bcb04f
commit a58142030d
3 changed files with 31 additions and 3 deletions

View file

@ -35,6 +35,7 @@ class Command(BaseCommand):
# Set the fields of the old statuses to the required values
for status in old_statuses:
logger.info(f'Resetting StudentStatus: {status}')
status.active = False
status.location = Point(0, 0)
status.subject = None
status.landmark = None