Get deserialized documents by UUID only.

This commit is contained in:
Roberto Rosario
2015-10-19 01:21:16 -04:00
parent 32c7b0e379
commit e791f2d36c

View File

@@ -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(