Get deserialized documents by UUID only.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user