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): ...@@ -8,14 +8,14 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options): def handle_noargs(self, **options):
for host in Host.objects.all(): for host in Host.objects.all():
is_active = None
for show in host.shows.all(): for show in host.shows.all():
is_active = None
if show.is_active: if show.is_active:
is_active = True is_active = True
else: else:
is_active = False is_active = False
host.is_active = is_active host.is_active = is_active
if not is_active: if not is_active:
host.save() host.save()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment