From f50e058fc748a0d1ea7b9548f12d4929c4f6f798 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 24 Jul 2011 21:45:45 +0200 Subject: fixed indexing. 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: -- cgit v0.10.2