mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.
This commit is contained in:
parent
4c675523bd
commit
0ef04fdd7a
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue