Skip to content
Snippets Groups Projects
Commit 7abeccf4 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fixed command

parent 10d92b42
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,14 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
for host in Host.objects.all():
is_active = None
for show in host.shows.all():
is_active = None
if show.is_active:
is_active = True
else:
is_active = False
host.is_active = is_active
host.is_active = is_active
if not is_active:
host.save()
if not is_active:
host.save()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment