MCPcopy
hub / github.com/django/django / _location

Method _location

django/contrib/sitemaps/__init__.py:64–71  ·  view source on GitHub ↗
(self, item, force_lang_code=None)

Source from the content-addressed store, hash-verified

62 return self.items()
63
64 def _location(self, item, force_lang_code=None):
65 if self.i18n:
66 obj, lang_code = item
67 # Activate language from item-tuple or forced one before calling
68 # location.
69 with translation.override(force_lang_code or lang_code):
70 return self._get("location", item)
71 return self._get("location", item)
72
73 @property
74 def paginator(self):

Callers 1

_urlsMethod · 0.95

Calls 1

_getMethod · 0.95

Tested by

no test coverage detected