MCPcopy
hub / github.com/liangliangyy/DjangoBlog / get_full_url

Method get_full_url

blog/models.py:48–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 super().save(*args, **kwargs)
47
48 def get_full_url(self):
49 site = get_current_site().domain
50 url = "https://{site}{path}".format(site=site,
51 path=self.get_absolute_url())
52 return url
53
54 class Meta:
55 abstract = True

Callers 5

test_validate_articleMethod · 0.45
get_view_on_site_urlMethod · 0.45
convert_to_article_replyFunction · 0.45
model_post_save_callbackFunction · 0.45
_get_article_seo_dataMethod · 0.45

Calls 2

get_absolute_urlMethod · 0.95
get_current_siteFunction · 0.90

Tested by 1

test_validate_articleMethod · 0.36