'Fetch a document and confirm that this user can write to it.'

def get_doc_for_writing(self, doc_id, user):

    doc = Document.objects.documents(user).get(id=doc_id)
    doc.can_write_or_exception(user)
    return doc
