mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #25361 -- Added test for pickling queryset of abstract-inherited models with Meta.ordering.
Fixed in 67cf5efa31
.
This commit is contained in:
parent
9285926295
commit
200cd8803d
2 changed files with 21 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue