Add newly uploaded document to the recent document list of the user.

This commit is contained in:
Roberto Rosario
2016-03-16 16:42:01 -04:00
parent a6c9393aa0
commit 5bb04cc8f4
3 changed files with 5 additions and 0 deletions

View File

@@ -74,6 +74,9 @@ class Source(models.Model):
file_object=file_object, _user=user
)
if user:
document.add_as_recent_document_for_user(user)
Transformation.objects.copy(
source=self, targets=document_version.pages.all()
)