Skip to content

Commit 078fc36

Browse files
author
soest
committed
Remove inactives
1 parent 2aeceb5 commit 078fc36

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

S1/waitinglists/management/commands/remove_inactive.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def handle(self, *args, **kwargs):
1616
completed=False, expiry_date__lt=timezone.now()
1717
)
1818
for inactive in inactives:
19-
pass # inactive.delete()
20-
log_admin_action(
21-
User.objects.get(username=1000),
22-
inactive,
23-
DELETION,
24-
f"Deleted {inactive.user.username}, {inactive.module.name}, {inactive.date_added}, {inactive.expiry_date}",
25-
)
19+
log_admin_action(
20+
User.objects.get(username=1000),
21+
inactive,
22+
DELETION,
23+
f"Deleted {inactive.user.username}, {inactive.module.name}, {inactive.date_added}, {inactive.expiry_date}",
24+
)
25+
inactive.delete()

0 commit comments

Comments
 (0)