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

fixed indexing.

parent 55a4c771
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class Command(BaseCommand):
except Exception as e:
raise CommandError(e)
owner = show.owners[0] if show.owners.count() > 0 else User.objects.get(pk=1)
owner = show.owners.all()[0] if show.owners.count() > 0 else User.objects.get(pk=1)
note = Note(timeslot=timeslot, owner=owner, title=title, content=''.join(lines))
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment