Avoid clobbering value when processing kwargs in LinkColumn.
authorW. Trevor King <wking@drexel.edu>
Thu, 21 Jul 2011 12:19:03 +0000 (08:19 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 21 Jul 2011 12:19:03 +0000 (08:19 -0400)
django_tables2/columns.py

index 4b48bd8a77d2b5d7fefe00bacf0601ae14c48a6e..c547fa7de1f70b9bff40175282348dd6dd38875e 100644 (file)
@@ -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: