diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-07-24 19:45:45 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-07-24 19:45:45 (GMT) |
commit | f50e058fc748a0d1ea7b9548f12d4929c4f6f798 (patch) | |
tree | 8fd72bf94c7b72945e557652384a05a9981d4293 /program | |
parent | 55a4c77108fc018f481487dc4574d41ced9c6689 (diff) |
fixed indexing.
Diffstat (limited to 'program')
-rw-r--r-- | program/management/commands/addnote.py | 2 |
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: |