Fix kwargs iteration in LinkColumn.render.
authorW. Trevor King <wking@drexel.edu>
Thu, 21 Jul 2011 11:51:24 +0000 (07:51 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 21 Jul 2011 11:51:24 +0000 (07:51 -0400)
django_tables2/columns.py

index d3b159d8b64ad094dd83ff519857aa8be379c88a..4b48bd8a77d2b5d7fefe00bacf0601ae14c48a6e 100644 (file)
@@ -239,7 +239,7 @@ class LinkColumn(Column):
                               for a in self.args]
         if self.kwargs:
             params['kwargs'] = self.kwargs
-            for key, value in self.kwargs:
+            for key, value in self.kwargs.items():
                 if isinstance(value, A):
                     params['kwargs'][key] = value.resolve(record)
         if self.current_app: