MCPcopy
hub / github.com/django/django / earliest

Method earliest

django/db/models/query.py:1162–1165  ·  view source on GitHub ↗
(self, *fields)

Source from the content-addressed store, hash-verified

1160 return obj.get()
1161
1162 def earliest(self, *fields):
1163 if self.query.is_sliced:
1164 raise TypeError("Cannot change a query once a slice has been taken.")
1165 return self._earliest(*fields)
1166
1167 async def aearliest(self, *fields):
1168 return await sync_to_async(self.earliest)(*fields)

Calls 1

_earliestMethod · 0.95