mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Fixed #24851 -- Fixed crash with reverse one-to-one relation in ModelAdmin.list_display
Forwardport of 2456276b02 from stable/1.8.x
This commit is contained in:
@@ -83,6 +83,10 @@ class Swallow(models.Model):
|
||||
ordering = ('speed', 'load')
|
||||
|
||||
|
||||
class SwallowOneToOne(models.Model):
|
||||
swallow = models.OneToOneField(Swallow)
|
||||
|
||||
|
||||
class UnorderedObject(models.Model):
|
||||
"""
|
||||
Model without any defined `Meta.ordering`.
|
||||
|
||||
Reference in New Issue
Block a user