mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed all E261 warnings
This commit is contained in:
@@ -51,7 +51,7 @@ class TestAdminOrdering(TestCase):
|
||||
it actually changes.
|
||||
"""
|
||||
class BandAdmin(ModelAdmin):
|
||||
ordering = ('rank',) # default ordering is ('name',)
|
||||
ordering = ('rank',) # default ordering is ('name',)
|
||||
ma = BandAdmin(Band, None)
|
||||
names = [b.name for b in ma.get_queryset(request)]
|
||||
self.assertEqual(['Radiohead', 'Van Halen', 'Aerosmith'], names)
|
||||
|
||||
Reference in New Issue
Block a user