From 64983292c064c1947bcea960a51beba99205a784 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 21 Jul 2011 08:39:57 -0400 Subject: [PATCH] Avoid overriding the mutable self.kwargs for LinkColumn Accessors. --- django_tables2/columns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django_tables2/columns.py b/django_tables2/columns.py index c547fa7..12ccee1 100644 --- a/django_tables2/columns.py +++ b/django_tables2/columns.py @@ -238,10 +238,12 @@ class LinkColumn(Column): params['args'] = [a.resolve(record) if isinstance(a, A) else a for a in self.args] if self.kwargs: - params['kwargs'] = self.kwargs + params['kwargs'] = {} for key, value_ in self.kwargs.items(): if isinstance(value_, A): params['kwargs'][key] = value_.resolve(record) + else: + params['kwargs'][key] = value_ if self.current_app: params['current_app'] = self.current_app for key, value in self.current_app: -- 2.26.2