diff --git a/HISTORY.rst b/HISTORY.rst index 18c9734551..215f80c800 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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) ================== diff --git a/docs/releases/2.1.rst b/docs/releases/2.1.rst index 4e6bd33993..a0f7d1bf12 100644 --- a/docs/releases/2.1.rst +++ b/docs/releases/2.1.rst @@ -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 -------- diff --git a/mayan/apps/sources/models.py b/mayan/apps/sources/models.py index 22ad807261..1e4baf9ebd 100644 --- a/mayan/apps/sources/models.py +++ b/mayan/apps/sources/models.py @@ -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() )