You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only the default, if nothing specified, is a dict.
Suggest the following change:
diff --git a/django_tables2/columns.py b/django_tables2/columns.py
index ed5c59d..69adc2e 100644
--- a/django_tables2/columns.py+++ b/django_tables2/columns.py@@ -86,7 +86,7 @@ class Column(object):
if orderable is None:
orderable = sortable
self.orderable = orderable
- attrs = attrs or {}+ attrs = attrs or Attrs()
if not isinstance(attrs, Attrs):
warnings.warn('attrs must be Attrs object, not %s'
% type(attrs).__name__, DeprecationWarning)
The text was updated successfully, but these errors were encountered:
Only the default, if nothing specified, is a dict.
Suggest the following change:
The text was updated successfully, but these errors were encountered: