Fixed #31285 -- Fixed inherited Meta.ordering of "-pk".

This commit is contained in:
Jon Dufresne 2020-02-18 20:09:48 -08:00 committed by Mariusz Felisiak
parent 142ab6846a
commit 013147fae2
3 changed files with 19 additions and 4 deletions

View file

@ -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')