Fix bug in late-login user stuff.
This commit is contained in:
parent
a7bcf71642
commit
75c9f9ebc0
|
@ -699,7 +699,7 @@ class FileBatchCrud(BatchCrud):
|
||||||
# For new batches, assign current user as creator, save file etc.
|
# For new batches, assign current user as creator, save file etc.
|
||||||
if self.creating:
|
if self.creating:
|
||||||
with Session.no_autoflush:
|
with Session.no_autoflush:
|
||||||
batch.created_by = self.request.user or self.latelogin_user()
|
batch.created_by = self.request.user or self.late_login_user()
|
||||||
|
|
||||||
# Expunge batch from session to prevent it from being flushed
|
# Expunge batch from session to prevent it from being flushed
|
||||||
# during init. This is done as a convenience to views which
|
# during init. This is done as a convenience to views which
|
||||||
|
|
Loading…
Reference in a new issue