mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #31285 -- Fixed inherited Meta.ordering of "-pk".
This commit is contained in:
parent
142ab6846a
commit
013147fae2
3 changed files with 19 additions and 4 deletions
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue