@@ -1278,7 +1278,7 @@ def adopt_draft(request, name):
12781278
12791279 # stream
12801280 if doc .stream != new_stream :
1281- e = DocEvent (type = "changed_stream" , time = doc . time , by = by , doc = doc )
1281+ e = DocEvent (type = "changed_stream" , by = by , doc = doc )
12821282 e .desc = u"Changed stream to <b>%s</b>" % new_stream .name
12831283 if doc .stream :
12841284 e .desc += u" from %s" % doc .stream .name
@@ -1291,7 +1291,7 @@ def adopt_draft(request, name):
12911291
12921292 # group
12931293 if group != doc .group :
1294- e = DocEvent (type = "changed_group" , time = doc . time , by = by , doc = doc )
1294+ e = DocEvent (type = "changed_group" , by = by , doc = doc )
12951295 e .desc = u"Changed group to <b>%s (%s)</b>" % (group .name , group .acronym .upper ())
12961296 if doc .group .type_id != "individ" :
12971297 e .desc += " from %s (%s)" % (doc .group .name , doc .group .acronym .upper ())
@@ -1300,7 +1300,7 @@ def adopt_draft(request, name):
13001300 doc .group = group
13011301
13021302 new_notify = get_initial_notify (doc ,extra = doc .notify )
1303- events .append (make_notify_changed_event (request , doc , by , new_notify , doc . time ))
1303+ events .append (make_notify_changed_event (request , doc , by , new_notify ))
13041304 doc .notify = new_notify
13051305
13061306 comment = form .cleaned_data ["comment" ].strip ()
@@ -1309,7 +1309,7 @@ def adopt_draft(request, name):
13091309 prev_state = doc .get_state ("draft-stream-%s" % doc .stream_id )
13101310 if new_state != prev_state :
13111311 doc .set_state (new_state )
1312- e = add_state_change_event (doc , by , prev_state , new_state , timestamp = doc . time )
1312+ e = add_state_change_event (doc , by , prev_state , new_state )
13131313 events .append (e )
13141314
13151315 due_date = None
@@ -1322,7 +1322,7 @@ def adopt_draft(request, name):
13221322
13231323 # comment
13241324 if comment :
1325- e = DocEvent (type = "added_comment" , time = doc . time , by = by , doc = doc )
1325+ e = DocEvent (type = "added_comment" , by = by , doc = doc )
13261326 e .desc = comment
13271327 e .save ()
13281328 events .append (e )
@@ -1427,7 +1427,7 @@ def change_stream_state(request, name, state_type):
14271427 new_state = form .cleaned_data ["new_state" ]
14281428 if new_state != prev_state :
14291429 doc .set_state (new_state )
1430- e = add_state_change_event (doc , by , prev_state , new_state , timestamp = doc . time )
1430+ e = add_state_change_event (doc , by , prev_state , new_state )
14311431 events .append (e )
14321432
14331433 due_date = None
@@ -1445,7 +1445,7 @@ def change_stream_state(request, name, state_type):
14451445 if existing_tags != new_tags :
14461446 doc .tags = new_tags
14471447
1448- e = DocEvent (type = "changed_document" , time = doc . time , by = by , doc = doc )
1448+ e = DocEvent (type = "changed_document" , by = by , doc = doc )
14491449 added_tags = new_tags - existing_tags
14501450 removed_tags = existing_tags - new_tags
14511451 l = []
@@ -1461,7 +1461,7 @@ def change_stream_state(request, name, state_type):
14611461
14621462 # comment
14631463 if comment :
1464- e = DocEvent (type = "added_comment" , time = doc . time , by = by , doc = doc )
1464+ e = DocEvent (type = "added_comment" , by = by , doc = doc )
14651465 e .desc = comment
14661466 e .save ()
14671467 events .append (e )
0 commit comments