Moved where active status is displayed.
Cleaned up logout redirects Added suburbs admin page back. Wasn't able to create new suburbs Made active status check to any traveller save function
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
from coord.models import Traveller
|
||||
from .models import Traveller
|
||||
|
||||
|
||||
def nightly_check_active_status():
|
||||
for traveller in Traveller.objects.all():
|
||||
traveller.update_active_status()
|
||||
start_date = traveller.travel_start_date
|
||||
end_date = traveller.travel_end_date
|
||||
is_active = traveller.is_active
|
||||
traveller._update_active_status()
|
||||
if start_date != traveller.travel_start_date or end_date != traveller.travel_end_date or is_active != traveller.is_active:
|
||||
traveller.save()
|
||||
|
||||
Reference in New Issue
Block a user