MCPcopy
hub / github.com/django/django / get_queryset

Method get_queryset

tests/admin_views/admin.py:373–376  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

371 )
372
373 def get_queryset(self, request):
374 # Order by a field that isn't in list display, to be able to test
375 # whether ordering is preserved.
376 return super().get_queryset(request).order_by("age")
377
378
379class ParentWithUUIDPKNoAddAdmin(admin.ModelAdmin):

Callers

nothing calls this directly

Calls 2

order_byMethod · 0.80
get_querysetMethod · 0.45

Tested by

no test coverage detected