diff options
| author | Simon Charette <charette.s@gmail.com> | 2020-10-05 09:21:16 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-05 20:47:51 +0200 |
| commit | 0ef04fdd7ab75daa59536261bbfc5da4c4e31079 (patch) | |
| tree | afb7c794499aaa5316da0e30d0c22fd520eeac8c /tests/queryset_pickle | |
| parent | 4c675523bd3e45906bf6736444c65b066e25208c (diff) | |
Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.
Diffstat (limited to 'tests/queryset_pickle')
| -rw-r--r-- | tests/queryset_pickle/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/queryset_pickle/models.py b/tests/queryset_pickle/models.py index 23237a3ec2..905eaeff8e 100644 --- a/tests/queryset_pickle/models.py +++ b/tests/queryset_pickle/models.py @@ -37,7 +37,7 @@ class Group(models.Model): class Event(models.Model): title = models.CharField(max_length=100) - group = models.ForeignKey(Group, models.CASCADE) + group = models.ForeignKey(Group, models.CASCADE, limit_choices_to=models.Q()) class Happening(models.Model): |
