Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ BandAdmin
Class
BandAdmin
tests/admin_ordering/tests.py:68–69 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
""
"
67
68
class
BandAdmin(ModelAdmin):
69
ordering = (
"rank"
,)
# default ordering is ('name',)
70
71
ma = BandAdmin(Band, site)
72
names = [b.name
for
b in ma.get_queryset(request)]
Callers
2
test_specified_ordering
Method · 0.70
test_specified_ordering_by_f_expression
Method · 0.70
Calls
2
F
Class · 0.90
desc
Method · 0.45
Tested by
2
test_specified_ordering
Method · 0.56
test_specified_ordering_by_f_expression
Method · 0.56