summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/management/commands/addnote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/management/commands/addnote.py b/program/management/commands/addnote.py
index 2ba2022..f406224 100644
--- a/program/management/commands/addnote.py
+++ b/program/management/commands/addnote.py
@@ -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: