diff options
author | Josh Smeaton <josh.smeaton@gmail.com> | 2014-11-16 12:56:42 +1100 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2014-11-16 13:19:34 +0100 |
commit | f61256da3a266c75c2f75c35172832bf2d605939 (patch) | |
tree | 7042d1d9def507c245b03f074681e5f4ff898415 /tests/foreign_object | |
parent | 05e0e4674ce9995a1dc5962001747abce30e4f69 (diff) | |
download | django-f61256da3a266c75c2f75c35172832bf2d605939.tar.gz |
Renamed qn to compiler
Diffstat (limited to 'tests/foreign_object')
-rw-r--r-- | tests/foreign_object/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/foreign_object/models.py b/tests/foreign_object/models.py index fc51118149..07d9ff4450 100644 --- a/tests/foreign_object/models.py +++ b/tests/foreign_object/models.py @@ -117,7 +117,8 @@ class ColConstraint(object): def __init__(self, alias, col, value): self.alias, self.col, self.value = alias, col, value - def as_sql(self, qn, connection): + def as_sql(self, compiler, connection): + qn = compiler.quote_name_unless_alias return '%s.%s = %%s' % (qn(self.alias), qn(self.col)), [self.value] |