Add newly uploaded document to the recent document list of the user.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- Add Message of the Day app. Issue #222
|
||||
- Update Document model's uuid field to use Django's native UUIDField class.
|
||||
- Add new split view index navigation
|
||||
- Newly uploaded documents appear in the Recent document list of the user.
|
||||
|
||||
2.0.2 (2016-02-09)
|
||||
==================
|
||||
|
||||
@@ -32,6 +32,7 @@ Other changes
|
||||
- Folder and Tag creation API calls now return the id of the created instances.
|
||||
- Update Document model's uuid field to use Django's native UUIDField class.
|
||||
- Add new split view index navigation
|
||||
- Newly uploaded documents appear in the Recent document list of the user.
|
||||
|
||||
Removals
|
||||
--------
|
||||
|
||||
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user