MCPcopy
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)]

Calls 2

FClass · 0.90
descMethod · 0.45