Skip to content

Commit 288d401

Browse files
committed
Made Column attrs argument default to Attrs(), to avoid deprecation errors
1 parent d4e7bd3 commit 288d401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_tables2/columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, verbose_name=None, accessor=None, default=None,
8686
if orderable is None:
8787
orderable = sortable
8888
self.orderable = orderable
89-
attrs = attrs or {}
89+
attrs = attrs or Attrs()
9090
if not isinstance(attrs, Attrs):
9191
warnings.warn('attrs must be Attrs object, not %s'
9292
% type(attrs).__name__, DeprecationWarning)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy