Refs #25361 -- Added test for pickling queryset of abstract-inherited models with Meta.ordering.

Fixed in 67cf5efa31.
This commit is contained in:
Baptiste Mispelon 2019-12-11 15:25:50 +01:00 committed by Mariusz Felisiak
parent 9285926295
commit 200cd8803d
2 changed files with 21 additions and 1 deletions

View file

@ -58,3 +58,17 @@ class Container:
class M2MModel(models.Model):
groups = models.ManyToManyField(Group)
class AbstractEvent(Event):
class Meta:
abstract = True
ordering = ['title']
class MyEvent(AbstractEvent):
pass
class Edition(models.Model):
event = models.ForeignKey('MyEvent', on_delete=models.CASCADE)