Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed a field in the queries test schema that was preventing the te…

…sts from running in Oracle. I've opened #7109 to address the general problem. Refs #7109

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 13a6fd61c6b234cedf0ceebc7a66cce45c1006af 1 parent a97f690
@ikelly ikelly authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/queries/models.py
View
8 tests/regressiontests/queries/models.py
@@ -120,13 +120,13 @@ class Meta:
# A model and custom default manager combination.
class CustomManager(models.Manager):
def get_query_set(self):
- return super(CustomManager, self).get_query_set().filter(public=True,
- tag__name='t1')
+ qs = super(CustomManager, self).get_query_set()
+ return qs.filter(is_public=True, tag__name='t1')
class ManagedModel(models.Model):
data = models.CharField(max_length=10)
tag = models.ForeignKey(Tag)
- public = models.BooleanField(default=True)
+ is_public = models.BooleanField(default=True)
objects = CustomManager()
normal_manager = models.Manager()
@@ -698,7 +698,7 @@ def __unicode__(self):
Bug #7095
Updates that are filtered on the model being updated are somewhat tricky to get
in MySQL. This exercises that case.
->>> mm = ManagedModel.objects.create(data='mm1', tag=t1, public=True)
+>>> mm = ManagedModel.objects.create(data='mm1', tag=t1, is_public=True)
>>> ManagedModel.objects.update(data='mm')
"""}
Please sign in to comment.
Something went wrong with that request. Please try again.