mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Fixed #15823 - incorrect join condition when combining Q objects
Thanks to dcwatson for the excellent report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
970ae01620
commit
db5807bdb1
3 changed files with 41 additions and 1 deletions
|
|
@ -31,3 +31,16 @@ class Comment(models.Model):
|
|||
|
||||
def __unicode__(self):
|
||||
return self.comment_text
|
||||
|
||||
# Ticket 15823
|
||||
|
||||
class Item(models.Model):
|
||||
title = models.CharField(max_length=100)
|
||||
|
||||
class PropertyValue(models.Model):
|
||||
label = models.CharField(max_length=100)
|
||||
|
||||
class Property(models.Model):
|
||||
item = models.ForeignKey(Item, related_name='props')
|
||||
key = models.CharField(max_length=100)
|
||||
value = models.ForeignKey(PropertyValue, null=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue