summaryrefslogtreecommitdiff
path: root/program/management/commands/importnotes.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-09-24 20:48:36 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-09-24 20:48:36 (GMT)
commit4b10dc637a62b53d60ddf1e18274fbee89a26a6b (patch)
treea567c93fd62cb644f136c7c64243fa4cdae69b51 /program/management/commands/importnotes.py
parentc0bf0be5658fdf3af27da5d1827ef8d156bf9145 (diff)
parentb6457768e7feec8ca8ad0f6535f8fc91b046c799 (diff)
Merge branch 'master' into develop
Diffstat (limited to 'program/management/commands/importnotes.py')
-rw-r--r--program/management/commands/importnotes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/program/management/commands/importnotes.py b/program/management/commands/importnotes.py
index 52999f5..287dcef 100644
--- a/program/management/commands/importnotes.py
+++ b/program/management/commands/importnotes.py
@@ -11,8 +11,6 @@ USER = 'helsinki'
PASSWD = 'helsinki'
DB = 'helsinki'
-OWNER = User.objects.get(pk=1)
-
class Command(NoArgsCommand):
help = 'Import notes from current program'
@@ -47,7 +45,7 @@ WHERE n.sendung_id in (SELECT id FROM sendungen WHERE letzter_termin > current_d
except MultipleObjectsReturned:
print 'multiple timeslots found for sendung "%s" and datum "%s"' % (stitel, datum)
else:
- note = Note(timeslot=timeslot, owner=OWNER, title=ntitel, content=notiz)
+ note = Note(timeslot=timeslot, title=ntitel, content=notiz)
try:
note.validate_unique()
except ValidationError: