kopia lustrzana https://github.com/wagtail/wagtail
Make sure that we are not iterating over tag.attrs.items()
rodzic
e58929d79b
commit
a4bd768a7d
|
@ -29,7 +29,7 @@ def attribute_rule(allowed_attrs):
|
|||
* if the lookup returns a truthy value, keep the attribute; if falsy, drop it
|
||||
"""
|
||||
def fn(tag):
|
||||
for attr, val in tag.attrs.items():
|
||||
for attr, val in list(tag.attrs.items()):
|
||||
rule = allowed_attrs.get(attr)
|
||||
if rule:
|
||||
if callable(rule):
|
||||
|
|
Ładowanie…
Reference in New Issue