diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2013-09-24 20:48:36 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2013-09-24 20:48:36 (GMT) |
commit | 4b10dc637a62b53d60ddf1e18274fbee89a26a6b (patch) | |
tree | a567c93fd62cb644f136c7c64243fa4cdae69b51 /program/management/commands/addnote.py | |
parent | c0bf0be5658fdf3af27da5d1827ef8d156bf9145 (diff) | |
parent | b6457768e7feec8ca8ad0f6535f8fc91b046c799 (diff) |
Merge branch 'master' into develop
Diffstat (limited to 'program/management/commands/addnote.py')
-rw-r--r-- | program/management/commands/addnote.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/management/commands/addnote.py b/program/management/commands/addnote.py index 97ae885..f418e6e 100644 --- a/program/management/commands/addnote.py +++ b/program/management/commands/addnote.py @@ -51,8 +51,7 @@ class Command(BaseCommand): except Exception as e: raise CommandError(e) - 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), status=status) + note = Note(timeslot=timeslot, title=title, content=''.join(lines), status=status) try: note.validate_unique() @@ -61,4 +60,4 @@ class Command(BaseCommand): else: note.save() print 'added note "%s" to "%s"' % (title, timeslot) -
\ No newline at end of file + |