From: W. Trevor King Date: Thu, 21 Jul 2011 12:39:57 +0000 (-0400) Subject: Avoid overriding the mutable self.kwargs for LinkColumn Accessors. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;ds=sidebyside;p=django-tables2.git Avoid overriding the mutable self.kwargs for LinkColumn Accessors. --- 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: