mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
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:
parent
87d1bcb04f
commit
a58142030d
3 changed files with 31 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue