def METHOD_NAME(self):
    if self.doc_url:
        return self.doc_url
    elif self.doc_file:
        return urljoin(
            settings.SITEURL,
            reverse('document_download', args=(self.id,))
        )