mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #26290 -- Warned that paginating an unordered QuerySet may result in inconsistent results.
This commit is contained in:
parent
724dd2043e
commit
c4980e28e5
5 changed files with 38 additions and 13 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue