Skip to content

Commit ba2ba23

Browse files
authored
Merge pull request #115 from CentreForDigitalHumanities/fix/django-51-python-312
Avoid deprecated escaping for Python 3.12
2 parents d8f00dc + 979cffd commit ba2ba23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cdh/core/templatetags/datatables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def render(self, context):
1313
if get_language() == 'nl':
1414
link = 'cdh.core/js/datatables/lang/dutch.json'
1515

16-
link = '{ "url": "%s" }' % static(link).replace('/', '\/')
16+
link = '{ "url": "%s" }' % static(link).replace('/', r'\/')
1717

1818
return mark_safe(link)
1919

0 commit comments

Comments
 (0)