mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #26290 -- Warned that paginating an unordered QuerySet may result in inconsistent results.
This commit is contained in:
@@ -481,7 +481,7 @@ class FieldOverridePostAdmin(PostAdmin):
|
||||
|
||||
class CustomChangeList(ChangeList):
|
||||
def get_queryset(self, request):
|
||||
return self.root_queryset.filter(pk=9999) # Does not exist
|
||||
return self.root_queryset.order_by('pk').filter(pk=9999) # Doesn't exist
|
||||
|
||||
|
||||
class GadgetAdmin(admin.ModelAdmin):
|
||||
|
||||
Reference in New Issue
Block a user