From ed871baba9acb1cef15ae29da0ed6d8b71a3db4b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 21 Jul 2011 08:19:03 -0400 Subject: [PATCH] Avoid clobbering value when processing kwargs in LinkColumn. --- django_tables2/columns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_tables2/columns.py b/django_tables2/columns.py index 4b48bd8..c547fa7 100644 --- a/django_tables2/columns.py +++ b/django_tables2/columns.py @@ -239,9 +239,9 @@ class LinkColumn(Column): for a in self.args] if self.kwargs: params['kwargs'] = self.kwargs - for key, value in self.kwargs.items(): - if isinstance(value, A): - params['kwargs'][key] = value.resolve(record) + for key, value_ in self.kwargs.items(): + if isinstance(value_, A): + params['kwargs'][key] = value_.resolve(record) if self.current_app: params['current_app'] = self.current_app for key, value in self.current_app: -- 2.26.2