We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b31b9 commit 08fdd3aCopy full SHA for 08fdd3a
widget_tweaks/templatetags/widget_tweaks.py
@@ -19,7 +19,7 @@ def _process_field_attributes(field, attr, process):
19
# split attribute name and value from 'attr:value' string
20
# params = attr.split(':', 1)
21
# attribute = params[0]
22
- params = re.split(r"(?<!:):(?!:)", attr, 1)
+ params = re.split(r"(?<!:):(?!:)", attr, maxsplit=1)
23
24
attribute = params[0].replace("::", ":")
25
value = params[1] if len(params) == 2 else True
0 commit comments