mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4c675523bd
commit
0ef04fdd7a
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user