From 877572d2b35ee92d9531debb39bb0af30100f8cd Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 8 Jul 2017 14:05:19 -0400 Subject: [PATCH] Use class names for clarity. Signed-off-by: Roberto Rosario --- mayan/apps/documents/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index 32c2ee4c5c..7ae0083c54 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -449,11 +449,11 @@ class DocumentVersion(models.Model): event_document_new_version.commit( actor=user, target=self.document ) - post_version_upload.send(sender=self.__class__, instance=self) + post_version_upload.send(sender=DocumentVersion, instance=self) if tuple(self.document.versions.all()) == (self,): post_document_created.send( - sender=self.document.__class__, instance=self.document + sender=Document, instance=self.document ) class Meta: