From: W. Trevor King Date: Thu, 21 Jul 2011 12:19:03 +0000 (-0400) Subject: Avoid clobbering value when processing kwargs in LinkColumn. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed871baba9acb1cef15ae29da0ed6d8b71a3db4b;p=django-tables2.git Avoid clobbering value when processing kwargs in LinkColumn. --- 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: