diff --git a/mayan/apps/documents/managers.py b/mayan/apps/documents/managers.py index b1f1b37c8a..be23c05e1f 100644 --- a/mayan/apps/documents/managers.py +++ b/mayan/apps/documents/managers.py @@ -105,11 +105,8 @@ class DocumentTypeManager(models.Manager): class DocumentManager(models.Manager): - def get_by_natural_key(self, uuid, *document_type_key): - from .models import DocumentType - - document_type = DocumentType.objects.get_by_natural_key(*document_type_key) - return self.get(uuid=uuid, document_type=document_type) + def get_by_natural_key(self, uuid): + return self.get(uuid=uuid) def get_queryset(self): return TrashCanQuerySet(