MCPcopy
hub / github.com/django/django / get_latest_lastmod

Method get_latest_lastmod

django/contrib/sitemaps/__init__.py:195–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 return None
194
195 def get_latest_lastmod(self):
196 if self.date_field is not None:
197 return (
198 self.queryset.order_by("-" + self.date_field)
199 .values_list(self.date_field, flat=True)
200 .first()
201 )
202 return None

Callers

nothing calls this directly

Calls 3

firstMethod · 0.80
values_listMethod · 0.80
order_byMethod · 0.80

Tested by

no test coverage detected