summaryrefslogtreecommitdiff
path: root/tests/regressiontests/model_fields/models.py
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-03-10 01:21:59 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-03-10 01:21:59 +0000
commit2bb360c91c42ae7a23ad7330fc13d98a6d9efa5f (patch)
tree28fa3c7d97491ab2b689365af35e908acf8f6776 /tests/regressiontests/model_fields/models.py
parentec7dd583f2b33aa9a575530fbec215426348fdf6 (diff)
[1.2.X] Fixed #15559 - distinct queries introduced by [15607] cause errors with some custom model fields
This patch just reverts [15607] until a more satisfying solution can be found. Refs #11707 Backport of [15791] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/model_fields/models.py')
-rw-r--r--tests/regressiontests/model_fields/models.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/regressiontests/model_fields/models.py b/tests/regressiontests/model_fields/models.py
index 4adaf3b113..45cd223142 100644
--- a/tests/regressiontests/model_fields/models.py
+++ b/tests/regressiontests/model_fields/models.py
@@ -29,11 +29,6 @@ class Bar(models.Model):
b = models.CharField(max_length=10)
a = models.ForeignKey(Foo, default=get_foo)
-class Baz(models.Model):
- a = models.CharField(max_length=5)
- #Only Foos related to Bars starting with 'a'
- foo = models.ForeignKey(Foo, limit_choices_to=models.Q(bar__b__startswith='a'))
-
class Whiz(models.Model):
CHOICES = (
('Group 1', (