mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31285 -- Fixed inherited Meta.ordering of "-pk".
This commit is contained in:
committed by
Mariusz Felisiak
parent
142ab6846a
commit
013147fae2
@@ -181,6 +181,8 @@ class GrandParent(models.Model):
|
||||
place = models.ForeignKey(Place, models.CASCADE, null=True, related_name='+')
|
||||
|
||||
class Meta:
|
||||
# Ordering used by test_inherited_ordering_pk_desc.
|
||||
ordering = ['-pk']
|
||||
unique_together = ('first_name', 'last_name')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user